Function at 0x48ffd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
cmp dword [ebp + 0x44], 0
je 0x4905b8
cmp dword [ebp + 0x34], 0
jne 0x4905b8
test dword [ebp + 4], 0x100000
jne 0x4905b8
mov ebx, dword [esp + 0x94]
mov eax, dword [ebx + 8]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x490032
cmp dword [ebx + 0x74], eax
jne 0x490025
mov eax, dword [ebx]
test byte [eax + 0x4c], 8
jne 0x490025
mov byte [ebx + 0x17], 1
push ebx
call fcn.0047aac0
add esp, 4
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x20]
mov edi, dword [ebx]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x40], eax
push 0
push 0x4c
test edi, edi
je 0x490083
push edi
call fcn.00455fb0
mov esi, eax
add esp, 0xc
mov dword [esp + 0x14], esi
jmp 0x490091
call fcn.00466e30
add esp, 8
mov dword [esp + 0x14], eax
mov esi, eax
test esi, esi
je 0x490590
push 0x4c
push 0
push esi
call fcn.004ac5e0
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.0044afa0
lea eax, [esp + 0x6c]
push ebp
push eax
call fcn.00489710
mov eax, dword [ebp + 4]
and eax, 0xfffffff7
mov dword [ebp + 0x20], 0
or eax, 0x100000
mov dword [ebp + 0x24], 0
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x34]
push 1
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
push dword [eax + 8]
push 0
push ebx
call fcn.00431060
mov ecx, dword [esp + 0x44]
push 1
push dword [ecx + 0xc]
push eax
push ebx
call fcn.00431060
mov ecx, eax
add esp, 0x3c
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x490156
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x490156
mov eax, dword [eax]
mov esi, dword [ecx]
cmp eax, esi
jg 0x490152
push 0xffffffffffffffff
mov dword [ecx], eax
push dword [ebp + 0x30]
push ecx
call fcn.0045c730
add esp, 0xc
test eax, eax
jne 0x49014c
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x490145
push eax
push edi
call fcn.004311a0
add esp, 8
mov dword [ebp + 0x30], 0
mov eax, dword [esp + 0x30]
mov dword [eax], esi
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x28]
mov dword [ecx + 0x30], eax
lea eax, [esp + 0x10]
add dword [ebx + 0x28], 4
push eax
push esi
push dword [ebp + 0x1c]
push dword [esp + 0x28]
push ecx
push ebx
call fcn.004498b0
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov edi, dword [ebp + 0x30]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], 0x449970
mov dword [esp + 0x7c], 0x449ae0
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x20], esi
test edi, edi
je 0x490224
mov esi, dword [edi]
add edi, 4
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
test esi, esi
jle 0x490224
mov dword [esp + 0x20], ecx
nop
mov eax, dword [edi]
test eax, eax
je 0x490218
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0049b300
add esp, 8
test eax, eax
jne 0x490220
dec esi
add edi, 0x14
test esi, esi
jg 0x490200
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x49022c
mov ecx, dword [eax]
jmp 0x49022e
xor ecx, ecx
push 0
push dword [ebp + 8]
mov dword [ebp + 0x4c], ecx
push eax
push ebx
call fcn.00431060
push 0
push dword [ebp + 0xc]
push eax
push ebx
call fcn.00431060
mov edx, ebp
mov esi, eax
mov ebp, dword [esp + 0x48]
add esp, 0x20
mov dword [esp + 0x10], esi
mov edi, edx
lea ebx, [ebx]
mov eax, dword [edi + 0x48]
mov ecx, dword [eax + 0x14]
mov eax, dword [edi + 0x2c]
test dword [eax + 4], 0x100000
je 0x4902a8
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
push ecx
push dword [esp + 0x28]
push edx
push ebx
call fcn.004498b0
mov esi, dword [esp + 0x28]
add esp, 0x18
test esi, esi
je 0x49029d
mov eax, dword [esi]
mov dword [edi + 0x50], eax
mov byte [edi + 0x60], 1
jmp 0x4902c8
xor eax, eax
mov byte [edi + 0x60], 1
mov dword [edi + 0x50], eax
jmp 0x4902c8
test esi, esi
je 0x4902b0
mov eax, dword [esi]
jmp 0x4902b2
xor eax, eax
push 0
push ecx
push esi
push ebx
mov dword [edi + 0x50], eax
call fcn.00431060
mov esi, eax
add esp, 0x10
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4902ee
push 0
push 0
push eax
push dword [esp + 0x30]
call fcn.004308b0
push eax
push esi
push ebx
call fcn.0045c480
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x10], esi
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x34], eax
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov edx, dword [edi + 0x34]
mov dword [edi + 0x38], eax
mov ecx, dword [ebp + 0x6c]
cmp dword [ebp + 0x70], ecx
jg 0x49031d
push 0
push edx
push 0
push 0x48
push ebp
call fcn.00437ce0
add esp, 0x14
jmp 0x490350
lea eax, [ecx + 1]
mov dword [ebp + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebp + 0x68]
mov ebp, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x48
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edi, dword [edi + 0x24]
mov edx, dword [esp + 0x18]
test edi, edi
jne 0x490260
test esi, esi
jne 0x4903c6
push esi
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x4d31f0
push eax
push 0x9a
push dword [esp + 0x30]
mov dword [esp + 0x3c], 1
call fcn.004585b0
mov ebp, dword [ebx]
mov edi, eax
push esi
push 0x18
push ebp
call fcn.00455fb0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x4903b6
mov dword [esi], 1
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], edi
jmp 0x4903c6
test edi, edi
je 0x4903c4
push edi
push ebp
call fcn.0045b700
add esp, 8
xor esi, esi
push 0
push 0
push dword [esp + 0x38]
push dword [esp + 0x40]
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x34]
push esi
push ebx
call fcn.00473e00
push 0
push 0x50
push dword [ebx]
mov ebp, eax
call fcn.00455fb0
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x490427
mov eax, dword [esp + 0x98]
mov edi, dword [esp + 0x20]
mov dword [eax + 0x20], esi
mov esi, edi
test ebp, ebp
je 0x49053f
push 1
push ebp
push dword [esp + 0x2c]
call fcn.004283e0
add esp, 0xc
jmp 0x49053f
push 0x48
lea eax, [esi + 8]
mov dword [esi + 4], 1
push 0
push eax
mov dword [esi], 1
call fcn.004ac5e0
mov dword [esi + 0x34], 0xffffffff
add esp, 0xc
mov eax, dword [esi]
lea eax, [eax + eax*8]
mov dword [esi + eax*8 - 0x38], 0
mov dword [esi + eax*8 - 0x3c], 0
mov eax, dword [esp + 0x98]
mov dword [eax + 0x20], esi
mov dword [esi + 0x1c], ebp
mov edi, dword [eax + 0x20]
mov eax, dword [esp + 0x20]
mov esi, eax
test edi, edi
je 0x4904ab
xor edx, edx
cmp dword [edi], edx
jle 0x4904ab
lea ecx, [edi + 0x34]
cmp dword [ecx], 0
jge 0x4904a3
mov eax, dword [ebx + 0x28]
mov dword [ecx], eax
inc dword [ebx + 0x28]
mov eax, dword [ecx - 0x18]
test eax, eax
je 0x4904a3
push dword [eax + 0x20]
push ebx
call fcn.00474680
add esp, 8
inc edx
add ecx, 0x48
cmp edx, dword [edi]
jl 0x490483
or dword [ebp + 4], 0x40
push 0x40
push ebp
push ebx
call fcn.0046f970
mov edx, eax
add esp, 0xc
mov eax, dword [esp + 0x40]
and eax, 8
or dword [ebp + 4], eax
test edx, edx
jne 0x4904d0
lea ebp, [edx + 7]
jmp 0x490541
mov eax, dword [esp + 0x14]
mov esi, edx
mov edi, eax
mov ecx, 0x13
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov esi, edx
or dword [eax + 0x24], 0x4000
mov eax, dword [esp + 0x98]
push ebp
mov eax, dword [eax + 0x20]
mov dword [eax + 0x18], ecx
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x64], 0x48f920
mov dword [esp + 0x68], 0x4898f0
mov dword [esp + 0x6c], 0x4898e0
call fcn.00489710
add esp, 8
xor ebp, ebp
mov eax, dword [esp + 0x24]
mov ecx, 7
cmp byte [eax + 0x53], 0
cmovne ebp, ecx
test esi, esi
je 0x49055f
push esi
push eax
call fcn.00455ea0
add esp, 8
test ebp, ebp
je 0x4905ba
cmp dword [ebx + 0x24], 0
jne 0x4905ba
mov eax, dword [ebx]
test eax, eax
je 0x4905ba
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x4905ba
inc dword [eax + 0x24]
pop edi
pop esi
mov dword [eax + 0xc], 7
mov eax, ebp
pop ebp
pop ebx
add esp, 0x80
ret
test edi, edi
je 0x4905a8
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4905a8
inc dword [eax + 0x24]
mov dword [eax + 0xc], 7
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x80
ret
xor ebp, ebp
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x80
ret