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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x40], 9
jne 0x49ed4c
test byte [esi + 0x64], 1
je 0x49ed4c
mov dword [esi + 0x40], 1
mov eax, dword [esi + 0x58]
mov edi, dword [esi + 0x5c]
xor ebp, ebp
xor ebx, ebx
test eax, eax
jle 0x49f064
mov eax, dword [esi + 0x64]
test al, 2
jne 0x49eec4
mov ebx, dword [esp + 0x4c]
mov ecx, eax
and ecx, 4
mov dword [esp + 0x14], ecx
je 0x49ee50
test bl, 4
je 0x49ed92
mov edx, dword [esi + 0x54]
push ebp
push edx
mov ecx, esi
call fcn.0049f0e0
jmp 0x49eec8
test bl, 8
je 0x49edaa
push 0
push 0x7fff
mov ecx, esi
call fcn.0049f0e0
jmp 0x49eec8
test bl, 0x10
je 0x49eddc
mov eax, dword [esi + 0x78]
test eax, eax
je 0x49eeb7
mov eax, dword [0x55fdc0]
mov ecx, dword [0x55eb90]
mov edx, dword [esi + 0x48]
add ecx, eax
push 0
lea eax, [edx + ecx*2]
mov ecx, esi
push eax
call fcn.0049f0e0
jmp 0x49eec8
mov ebp, dword [esp + 0x50]
cmp ebp, 0xffffffff
je 0x49ee3d
lea eax, [esp + 0x24]
push eax
call dword [0x4fd6d0]
mov ecx, ebx
lea edx, [esp + 0x24]
and ecx, 2
push ecx
push edx
mov ecx, esi
call fcn.004df1f3
mov eax, ebx
and eax, 0x20
je 0x49ee23
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub ecx, edx
push eax
add ecx, ebp
push ecx
mov ecx, esi
call fcn.0049f0e0
jmp 0x49eec8
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
sub ecx, edx
push eax
add ecx, ebp
push ecx
mov ecx, esi
call fcn.0049f0e0
jmp 0x49eec8
test al, 1
je 0x49ee50
mov eax, dword [esi + 0x54]
push 0
push eax
mov ecx, esi
call fcn.0049f0e0
jmp 0x49eec8
test bl, 2
je 0x49ee8f
test bl, 1
je 0x49ed97
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x49ed97
mov ecx, esi
call fcn.004d01e5
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [0x4fd6b4]
mov eax, dword [esp + 0x3c]
push 0
push eax
mov ecx, esi
call fcn.0049f0e0
jmp 0x49eec8
mov eax, dword [esi + 0x78]
test eax, eax
je 0x49eeb7
mov eax, dword [esi + 0x48]
mov ebp, dword [0x55eb90]
mov edx, dword [0x55fdc0]
add eax, ebp
add eax, edx
push 0
shl eax, 1
push eax
mov ecx, esi
call fcn.0049f0e0
jmp 0x49eec8
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.0049f0e0
jmp 0x49eec8
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0049f330
mov edx, dword [eax]
test bl, 0x40
mov eax, dword [eax + 4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
je 0x49f05c
mov ecx, dword [esi + 0x58]
xor ebp, ebp
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x49efb7
mov eax, edi
test byte [eax + 4], 1
je 0x49ef0d
cmp dword [eax], 0
je 0x49ef0d
inc ebp
add eax, 0x10
dec ecx
jne 0x49ef01
test ebp, ebp
jle 0x49efb7
lea ecx, [ebp + ebp*2]
shl ecx, 3
push ecx
call fcn.004d2ddc
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x49ef38
dec ebp
mov dword [esp + 0x50], ebp
jmp 0x49ef3a
xor eax, eax
mov ecx, dword [esi + 0x58]
mov dword [esp + 0x10], eax
cmp ecx, ebx
mov dword [esp + 0x50], ebx
jle 0x49efb3
mov ebp, edi
lea edi, [eax + 8]
test byte [ebp + 4], 1
je 0x49efa8
cmp dword [ebp], 0
je 0x49efa8
mov dword [edi - 8], ebx
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
mov dword [edi - 4], edx
mov eax, dword [esi]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0xe0]
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.004d6d52
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
inc ecx
add edi, 0x18
mov dword [eax + 0xc], edx
mov dword [esp + 0x50], ecx
mov eax, dword [esi + 0x58]
inc ebx
add ebp, 0x10
cmp ebx, eax
jl 0x49ef4e
mov ebp, dword [esp + 0x50]
mov eax, dword [esi + 0x64]
test al, 1
je 0x49efc9
test al, 4
je 0x49efc9
mov eax, dword [esp + 0x24]
mov dword [esi + 0x54], eax
test ebp, ebp
jle 0x49f05c
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], ebp
lea ebx, [ecx + 8]
mov edx, dword [ebx - 4]
mov ecx, esi
push edx
call fcn.004d2981
test eax, eax
mov dword [esp + 0x14], eax
je 0x49f041
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [0x4fd6b0]
mov ecx, dword [ebx + 4]
mov ebp, dword [esp + 0x38]
mov eax, dword [ebx]
mov edi, dword [esp + 0x34]
mov edx, dword [ebx - 8]
sub ebp, ecx
lea ecx, [esp + 0x34]
sub edi, eax
mov eax, dword [esi]
push ecx
push edx
mov ecx, esi
call dword [eax + 0xe0]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push 0x15
add ebp, ecx
mov ecx, dword [esp + 0x18]
push 0
add edi, eax
push 0
push ebp
push edi
push 0
call fcn.004d2c16
mov eax, dword [esp + 0x50]
add ebx, 0x18
dec eax
mov dword [esp + 0x50], eax
jne 0x49efdc
mov edx, dword [esp + 0x10]
push edx
call fcn.004d2e05
add esp, 4
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
call dword [0x4fd6d0]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x34]
and edi, 2
push edi
push ecx
mov ecx, esi
call fcn.004df1f3
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x34]
sub edx, ecx
add ebx, edx
mov edx, dword [esp + 0x3c]
sub eax, edx
push edi
add ebp, eax
mov eax, dword [esp + 0x50]
and eax, 1
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.004de384
mov eax, dword [esp + 0x14]
cmp ebp, eax
jg 0x49f0be
mov dword [esp + 0x24], eax
mov ebp, eax
mov eax, dword [esp + 0x18]
cmp ebx, eax
jg 0x49f0cc
mov dword [esp + 0x28], eax
mov ebx, eax
mov eax, dword [esp + 0x48]
pop edi
pop esi
mov dword [eax], ebp
mov dword [eax + 4], ebx
pop ebp
pop ebx
add esp, 0x34
ret 0xc