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

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
xor edx, edx
mov edi, dword [esi + 0x154]
lea ebx, [esi + 0x170]
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
lea eax, [edi + 0x80]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], 5
mov dword [esp + 0x24], ebx
jmp 0x49cdc9
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [esi + 0xd0]
mov ecx, edx
shr ecx, 1
imul ecx, eax
push eax
imul eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
and edx, 1
add ecx, edx
mov edx, dword [esp + 0x4c]
add eax, ebp
mov ebp, dword [edx]
shl eax, 4
shl ecx, 3
add eax, ebp
add eax, ecx
push eax
mov eax, dword [esi + 0xb8]
add eax, ecx
push eax
push edi
call dword [0x58e438]
mov ecx, dword [esi + 0x1a4]
mov edx, dword [ebx + 0x1c]
mov eax, dword [esi + 0x188]
mov ebp, dword [esi + 0x15c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x16c]
mov dword [esp + 0x40], edx
mov edx, dword [ebx]
mov ebx, dword [esi + 0x154]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x168]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x158]
push edi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ecx
add ebx, 0x100
call dword [0x58e400]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x58]
add esp, 0x14
test ebp, ebp
push edx
push eax
push edi
push ecx
je 0x49ce7f
call dword [0x58e410]
jmp 0x49ce85
call dword [0x58e424]
add esp, 0x10
test eax, eax
jle 0x49cf35
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x44]
or eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push eax
push ecx
call fcn.004841d0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
shl eax, 4
add esp, 8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
push ebx
test ebp, ebp
je 0x49ceda
call dword [0x58e418]
jmp 0x49cee0
call dword [0x58e41c]
mov eax, dword [esp + 0x3c]
add esp, 0x10
test eax, eax
je 0x49cf30
push edi
call dword [0x58e574]
imul eax, dword [esp + 0x34]
mov edx, 0x8000
add esp, 4
add eax, eax
mov ecx, edx
mov ebp, ecx
imul ebp, ecx
cmp ebp, eax
jbe 0x49cf0e
xor ecx, edx
shr edx, 1
je 0x49cf16
or ecx, edx
jmp 0x49cf03
add ecx, 0x30
shr ecx, 6
push ecx
push ebx
push edi
call dword [0x58e57c]
lea eax, [eax + eax*4]
add esp, 0xc
shr eax, 7
jmp 0x49cf8f
push 0x10
push ebx
jmp 0x49cf85
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], 0
test eax, eax
je 0x49cf7e
push edi
call dword [0x58e574]
imul eax, dword [esp + 0x34]
mov edx, 0x8000
add esp, 4
add eax, eax
mov ecx, edx
mov ebx, ecx
imul ebx, ecx
cmp ebx, eax
jbe 0x49cf68
xor ecx, edx
shr edx, 1
je 0x49cf70
or ecx, edx
jmp 0x49cf5d
add ecx, 0x30
shr ecx, 6
push ecx
push 0x505a78
jmp 0x49cf1e
push 0x10
push 0x505a78
push edi
call dword [0x58e554]
add esp, 0xc
imul eax, dword [esp + 0x38]
xor edx, edx
mov ebp, dword [esp + 0x34]
div dword [esp + 0x3c]
mov ecx, dword [esi + 0x10]
mov edx, eax
mov eax, dword [esp + 0x14]
add edx, ebp
add eax, edx
cmp eax, ecx
mov dword [esp + 0x14], eax
jge 0x49d27c
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
inc eax
add ebx, 4
dec edx
cmp eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edx
jb 0x49cdc1
mov eax, dword [esp + 0x10]
mov ecx, 0x5003dc
shr eax, 2
shl eax, 3
sub ecx, eax
mov eax, dword [esi + 0xd0]
shr eax, 1
push eax
imul eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x18]
xor edx, edx
mov dl, byte [ecx]
mov ecx, dword [esp + 0x50]
sub edx, 2
add eax, ecx
mov ecx, dword [esp + 0x4c]
shl edx, 4
add ebp, edx
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x18], ebp
lea eax, [edx + eax*8]
push eax
push ecx
push edi
call dword [0x58e438]
mov edx, dword [esi + 0x1a4]
mov eax, dword [esi + 0x19c]
mov ecx, dword [esi + 0x188]
mov ebx, dword [esi + 0x154]
mov ebp, dword [esi + 0x15c]
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x16c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x180]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x168]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0x158]
push edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x2c], edx
add ebx, 0x100
call dword [0x58e400]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
add esp, 0x14
test ebp, ebp
push eax
push ecx
push edi
push edx
je 0x49d0ad
call dword [0x58e410]
jmp 0x49d0b3
call dword [0x58e424]
add esp, 0x10
test eax, eax
jle 0x49d159
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
or edx, 2
push eax
push ecx
mov dword [esp + 0x18], edx
call fcn.004841d0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
shl eax, 4
add esp, 8
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
push ebx
test ebp, ebp
je 0x49d0fe
call dword [0x58e418]
jmp 0x49d104
call dword [0x58e41c]
mov eax, dword [esp + 0x44]
add esp, 0x10
test eax, eax
je 0x49d154
push edi
call dword [0x58e574]
imul eax, dword [esp + 0x34]
mov edx, 0x8000
add esp, 4
add eax, eax
mov ecx, edx
mov ebp, ecx
imul ebp, ecx
cmp ebp, eax
jbe 0x49d132
xor ecx, edx
shr edx, 1
je 0x49d13a
or ecx, edx
jmp 0x49d127
add ecx, 0x30
shr ecx, 6
push ecx
push ebx
push edi
call dword [0x58e57c]
lea eax, [eax + eax*4]
add esp, 0xc
shr eax, 7
jmp 0x49d1ac
push 0x10
push ebx
jmp 0x49d1a2
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], 0
test eax, eax
je 0x49d19b
push edi
call dword [0x58e574]
imul eax, dword [esp + 0x34]
add eax, eax
push eax
call fcn.0049d3f0
add eax, 0x30
shr eax, 6
push eax
push 0x505a78
push edi
call dword [0x58e57c]
lea eax, [eax + eax*4]
add esp, 0x14
shr eax, 7
jmp 0x49d1ac
push 0x10
push 0x505a78
push edi
call dword [0x58e554]
add esp, 0xc
imul eax, dword [esp + 0x38]
xor edx, edx
mov ebx, dword [esp + 0x14]
div dword [esp + 0x28]
add eax, dword [esp + 0x2c]
add ebx, eax
mov eax, dword [esi + 0x10]
cmp ebx, eax
jl 0x49d1d2
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, dword [esi + 0xd0]
mov ecx, dword [esp + 0x4c]
shr eax, 1
push eax
imul eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
add eax, ecx
mov ecx, dword [edx + 8]
lea edx, [ecx + eax*8]
mov eax, dword [esi + 0xc0]
push edx
push eax
push edi
call dword [0x58e438]
mov ecx, dword [esi + 0x1a4]
mov edx, dword [esi + 0x1a0]
mov eax, dword [esi + 0x188]
push ecx
mov ecx, dword [esi + 0x16c]
push edx
mov edx, dword [esi + 0x184]
push eax
mov eax, dword [esi + 0x168]
push ecx
push edx
mov edx, dword [esi + 0x15c]
push eax
mov eax, dword [esi + 0x158]
lea ecx, [esp + 0x38]
push 5
push ecx
mov ecx, dword [esi + 0x154]
push edx
mov edx, dword [esp + 0x78]
add ecx, 0x100
push eax
push ecx
push edi
push edx
call fcn.0049d290
mov ecx, dword [esp + 0x54]
add ebx, eax
mov eax, ecx
xor edx, edx
and eax, 3
add esp, 0x44
shl eax, 6
mov dl, byte [eax + 0x51470c]
mov dword [esi + 0x160], ecx
shl edx, 4
lea eax, [ebx + edx - 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret