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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x58]
mov eax, dword [ebp + 0x50]
test eax, eax
push esi
push edi
je 0x49c02a
cmp dword [eax + 0x58], 0
je 0x49c02a
mov esi, dword [esp + 0x64]
test esi, esi
je 0x49c02a
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x49c02a
cmp dword [ebp + 0x4c], 0
je 0x49c02a
mov ebx, dword [ebp + 0x4c]
lea edi, [eax + 0x20]
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x18], edi
add ebx, 0x34
call edx
cmp dword [ebp + 0x14], eax
jg 0x49c02a
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [ebp + 0x18], eax
jg 0x49c02a
mov eax, dword [ebp + 0x4c]
cmp dword [eax + 0x3b0], 0
je 0x49bcda
lea eax, [edi + 0x108]
mov dword [esp + 0x20], eax
call fcn.00488e80
test eax, eax
je 0x49bcda
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp + 0x64]
mov edx, dword [ebp + 0x68]
push 0
push 0
push 0
push 0
push ecx
push eax
push edx
push eax
push esi
mov esi, dword [esp + 0x44]
call fcn.004893f0
mov esi, dword [esp + 0x88]
add esp, 0x24
call fcn.0046c230
mov dword [esp + 0x1c], eax
call fcn.0046c280
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
je 0x49be55
test eax, eax
je 0x49be55
mov eax, ebx
xor edi, edi
call fcn.00488e80
test eax, eax
jle 0x49be55
mov esi, ebx
call fcn.00472050
mov eax, dword [eax]
cmp dword [eax + 0x18], 0
je 0x49be3f
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 2
jne 0x49bd47
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 4
jne 0x49bd47
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
jmp 0x49bd4f
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], edx
mov esi, ebx
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 2
je 0x49bd6b
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x49bd78
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x14], edx
mov ebp, ecx
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 4
je 0x49bd8c
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x14], eax
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 8
je 0x49bda0
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x14], ecx
call fcn.00472050
mov eax, dword [eax]
test byte [eax + 0x14], 0x10
je 0x49bdb4
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x14], edx
call fcn.00472050
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call fcn.00472050
mov eax, dword [eax]
mov ebp, dword [eax + 0x10]
sub ebp, dword [eax + 8]
add eax, 4
call fcn.00472050
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x30], ecx
call fcn.00472050
mov dword [esp + 0x28], eax
call fcn.00472050
mov dword [esp + 0x34], eax
call fcn.00472050
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
movzx ecx, byte [edx + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
shl ecx, 0x18
or ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x40]
push ebp
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push ecx
mov ecx, dword [edx + 8]
mov edx, dword [eax + 4]
call fcn.00481320
mov ebp, dword [esp + 0x60]
mov eax, ebx
add edi, 1
call fcn.00488e80
cmp edi, eax
jl 0x49bd10
mov esi, dword [esp + 0x64]
push esi
push ebp
call fcn.0049c4b0
mov eax, dword [ebp + 0x48]
test eax, eax
je 0x49bef6
lea edi, [eax + 0x70]
test edi, edi
je 0x49bef6
call fcn.0046c230
test eax, eax
je 0x49bef6
mov eax, dword [ebp + 0x4c]
mov edx, dword [eax + 0x3c4]
cmp dword [edx - 0xc], 0
je 0x49bef6
cmp dword [eax + 0x3d4], 0
je 0x49bef6
mov ecx, edx
cmp dword [ecx - 0xc], 0
mov dword [esp + 0x60], 0
je 0x49beb4
cmp dword [eax + 0x3c8], 0
je 0x49beb4
mov dword [esp + 0x60], 1
movzx ebx, byte [eax + 0x3d0]
mov ecx, dword [eax + 0x3dc]
mov edx, dword [eax + 0x3d8]
shl ebx, 0x18
or ebx, dword [edi + 0x18]
push ebx
mov ebx, dword [esp + 0x64]
push ebx
mov ebx, dword [eax + 0x3e4]
sub ebx, ecx
push ebx
mov ebx, dword [eax + 0x3e0]
sub ebx, edx
push ebx
push ecx
mov ecx, dword [eax + 0x3c4]
push edx
push esi
push ebp
mov edx, edi
call fcn.00481860
mov eax, ebp
call fcn.004825c0
mov edi, eax
test edi, edi
je 0x49bf67
mov edx, dword [ebp + 0x4c]
mov eax, dword [edx + 0x48]
cmp dword [eax - 0xc], 0
je 0x49bf67
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x49bf23
mov esi, eax
call fcn.004696b0
mov esi, dword [esp + 0x64]
jmp 0x49bf25
xor eax, eax
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x49bf39
add ecx, 0xc0
je 0x49bf39
mov edx, dword [ecx + 0x18]
jmp 0x49bf3e
mov edx, 0x8c7a6b
mov ecx, dword [ebp + 0x4c]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x68]
sub eax, dword [ecx + 0x60]
push edx
mov edx, dword [ecx + 0x48]
push edi
push edx
mov edx, dword [ecx + 0x64]
sub edx, dword [ecx + 0x5c]
push eax
mov eax, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x5c]
push edx
push eax
push ecx
mov edi, esi
call fcn.004972a0
call fcn.0044d100
mov edx, dword [0x57668c]
cmp dword [edx + 0xd94], 0
mov dword [0x576688], 1
je 0x49c02a
mov edi, dword [ebp + 0x120]
xor eax, eax
cmp edi, eax
je 0x49c02a
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0xc]
mov edx, 5
mov dword [esp + 0x54], ecx
lea ebx, [eax + 5]
add ecx, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x38]
mov edx, esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
call fcn.00483610
mov ecx, dword [esp + 0x44]
push 0
push 0
lea eax, [esp + 0x50]
push eax
add ecx, 0xfffffffb
push ecx
push 5
lea edx, [ebx - 5]
push esi
mov bl, 1
mov eax, 5
mov esi, edi
call fcn.0048a340
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0xc]
mov ecx, 5
add edi, ecx
add eax, ecx
mov dword [ebp + 0x110], ecx
mov dword [ebp + 0x114], ecx
mov dword [ebp + 0x118], edi
mov dword [ebp + 0x11c], eax
mov dword [ebp + 0x140], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret 8