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

Disassembly:
push 0xffffffffffffffff
push 0x4c3ee2
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fe870]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
mov dword [esi], 0x4d9498
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esp + 0x98], ebx
lea ebp, [esi + 0x10]
push ebp
mov dword [esi], 0x4d6778
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00465e80
mov byte [esp + 0x98], 1
lea ecx, [esp + 0x40]
push ecx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00465e80
mov byte [esp + 0x98], 2
push 1
push 0x4d7fd8
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.004036e0
mov byte [esp + 0x98], 3
mov ebx, dword [esi + 4]
push 0x4d7fdc
call fcn.00475770
lea edx, [esp + 0x74]
push edx
mov ecx, eax
call fcn.00474fd0
mov byte [esp + 0x98], 4
lea ecx, [esp + 0x40]
push ecx
push eax
lea edi, [esp + 0x60]
call fcn.00453c60
add esp, 8
mov byte [esp + 0x98], 3
mov edi, 0x10
cmp dword [esp + 0x8c], edi
jb 0x4158ad
mov edx, dword [esp + 0x78]
push edx
call fcn.0047b19e
add esp, 4
mov ebx, 0xf
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
mov byte [esp + 0x98], 2
cmp dword [esp + 0x70], edi
jb 0x4158e4
mov eax, dword [esp + 0x5c]
push eax
call fcn.0047b19e
add esp, 4
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
cmp edi, eax
jbe 0x41590a
call fcn.0049f799
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x4c], eax
jbe 0x415925
call fcn.0049f799
test ebx, ebx
je 0x41592f
cmp ebx, dword [esp + 0x40]
je 0x415934
call fcn.0049f799
cmp edi, dword [esp + 0x14]
je 0x4159e6
test ebx, ebx
jne 0x415976
call fcn.0049f799
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x415953
call fcn.0049f799
cmp dword [edi + 0x18], 0x10
lea eax, [edi + 4]
jb 0x41595e
mov eax, dword [eax]
push eax
call fcn.004a072d
mov edx, dword [ebp + 0xc]
add esp, 4
mov dword [esp + 0x14], eax
test edx, edx
jne 0x41597a
xor ecx, ecx
jmp 0x415982
mov eax, dword [ebx]
jmp 0x415949
mov ecx, dword [ebp + 0x14]
sub ecx, edx
sar ecx, 2
mov edi, dword [ebp + 0x10]
mov ebx, edi
sub ebx, edx
sar ebx, 2
cmp ebx, ecx
jae 0x41599a
mov dword [edi], eax
add edi, 4
mov dword [ebp + 0x10], edi
jmp 0x4159b9
cmp edx, edi
jbe 0x4159a3
call fcn.0049f799
mov eax, dword [ebp]
push edi
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov eax, ebp
call fcn.004105a0
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x4159e2
call fcn.0049f799
xor eax, eax
mov edi, dword [esp + 0x1c]
cmp edi, dword [eax + 0x10]
jb 0x4159d6
call fcn.0049f799
mov eax, dword [esp + 0x50]
add edi, 0x1c
jmp 0x415912
mov eax, dword [ebx]
jmp 0x4159c8
push 4
call fcn.0047b16f
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x98], 5
xor ecx, ecx
cmp eax, ecx
je 0x415a0e
lea edx, [esp + 0x28]
mov dword [eax], edx
jmp 0x415a10
xor eax, eax
mov byte [esp + 0x98], 2
mov dword [esp + 0x28], eax
mov byte [esp + 0x98], 7
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x98], 8
push 1
mov dword [esp + 0x70], ecx
push 0x4d7fd8
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], 0xf
mov byte [esp + 0x64], 0
call fcn.004036e0
mov byte [esp + 0x98], 9
mov ebx, dword [esi + 4]
push 0x4d7fe4
call fcn.00475770
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
call fcn.00474fd0
mov byte [esp + 0x98], 0xa
lea edx, [esp + 0x28]
push edx
push eax
lea edi, [esp + 0x60]
call fcn.00453c60
add esp, 8
mov byte [esp + 0x98], 9
mov ebp, 0x10
cmp dword [esp + 0x8c], ebp
jb 0x415ab7
mov eax, dword [esp + 0x78]
push eax
call fcn.0047b19e
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov byte [esp + 0x98], 8
cmp dword [esp + 0x70], ebp
jb 0x415aeb
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0047b19e
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x34]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp eax, 2
jne 0x415b76
cmp dword [edi + 0x18], ebp
jb 0x415b23
mov edi, dword [edi + 4]
jmp 0x415b26
add edi, 4
push edi
call fcn.004a072d
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
sub ecx, edi
mov dword [esi + 0x28], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 4
cmp ecx, 1
ja 0x415b5d
call fcn.0049f799
mov edi, dword [esp + 0x34]
cmp dword [edi + 0x34], ebp
jb 0x415b67
mov edi, dword [edi + 0x20]
jmp 0x415b6a
add edi, 0x20
push edi
call fcn.004a072d
add esp, 4
mov dword [esi + 0x2c], eax
mov byte [esp + 0x98], 2
lea edx, [esp + 0x28]
push edx
call fcn.00415e50
mov byte [esp + 0x98], 1
lea eax, [esp + 0x40]
push eax
call fcn.00415e50
mov dword [esp + 0x98], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 8