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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x84
mov ecx, dword [esp + 0x98]
mov eax, dword [0x464010]
xor eax, esp
mov dword [esp + 0x80], eax
cmp dword [ecx], 0
jne 0x4158b2
push 0x50a
push 0x45d03a
push str.x__nw___0
call fcn.0043bf69
mov ecx, dword [esp + 0xa4]
add esp, 0xc
mov eax, dword [ecx + 4]
test byte [eax], 1
jne 0x4158d1
push 0x50b
push 0x45d03a
push str.x__w_0___1
call fcn.0043bf69
add esp, 0xc
mov eax, dword [esp + 0x9c]
test eax, eax
jne 0x4158fa
push 0x50c
push 0x45d03a
push str.p___0
call fcn.0043bf69
mov eax, dword [esp + 0xa8]
add esp, 0xc
add eax, 0x1f
shr eax, 5
mov esi, 1
cmovne esi, eax
lea edi, [esi*4]
push edi
push 8
push 1
call fcn.0040e430
add esp, 0xc
mov dword [eax], esi
lea ecx, [eax + 8]
mov dword [esp + 0x38], eax
mov dword [eax + 4], ecx
push edi
push ecx
call fcn.004116e0
add esp, 8
lea eax, [esi + esi]
cmp esi, eax
cmovbe eax, esi
add eax, eax
lea ebx, [eax + eax*2]
lea eax, [esi + esi*2]
lea edi, [ebx + eax*2]
lea esi, [edi*4]
push esi
push 8
push 1
call fcn.0040e430
add esp, 0xc
mov ebp, eax
mov dword [eax], edi
add eax, 8
mov dword [ebp + 4], eax
push esi
push eax
call fcn.004116e0
add esp, 8
mov esi, dword [ebp]
mov dword [esp + 0x40], ebp
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], eax
cmp esi, ebx
jae 0x415998
push 0x2bb
push 0x45d03a
push 0x45c4f0
call fcn.0043bf69
add esp, 0xc
mov ebx, esi
mov ecx, esi
mov eax, ebx
mov dword [esp + 0x34], ebx
sub ecx, ebx
cmp ecx, esi
cmovae ecx, esi
mov esi, ecx
mov edi, dword [esp + 0x38]
mov eax, dword [edi + 4]
mov dword [eax], 1
mov ecx, dword [esp + 0x9c]
cmp ecx, 2
jb 0x416093
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
add eax, 4
mov dword [esp + 0x44], eax
mov ebp, 1
mov dword [esp + 0x48], esi
jmp 0x415a0b
mov ecx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x20]
cmp ebp, ecx
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x48]
jae 0x416093
lea ecx, [ebp + 0x1f]
shr ecx, 5
mov eax, ecx
mov dword [esp + 0x28], ecx
cmp esi, ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x20], ebp
jae 0x415a4a
push 0x2bb
push 0x45d03a
push 0x45c4f0
call fcn.0043bf69
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0xa4]
add esp, 0xc
mov eax, esi
mov dword [esp + 0x10], eax
lea edx, [ebp + 0x1f]
add edx, ebp
shr edx, 5
mov dword [esp + 0x3c], edx
mov ebx, esi
sub ebx, eax
cmp ebx, esi
cmovae ebx, esi
mov dword [esp + 0x78], eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x7c], ebp
mov esi, dword [ecx]
cmp eax, esi
cmovb esi, eax
lea eax, [esi*4]
push eax
push dword [ecx + 4]
push ebp
call fcn.00434730
add esp, 0xc
mov eax, dword [esp + 0x10]
sub eax, esi
shl eax, 2
lea ecx, [esi*4]
add ecx, ebp
push eax
push ecx
call fcn.004116e0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
add esp, 8
mov esi, ecx
shr esi, 5
cmp esi, edx
jae 0x415af2
mov eax, 0xffffffff
shl eax, cl
not eax
mov ecx, dword [esp + 0x1c]
and dword [ecx + esi*4], eax
lea eax, [esi + 1]
cmp eax, edx
jae 0x415af2
mov eax, dword [esp + 0x44]
lea eax, [eax + esi*4]
mov ecx, esi
not ecx
add ecx, edx
shl ecx, 2
push ecx
push 0
push eax
call fcn.00434cb0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [edi]
mov ebp, dword [esp + 0x28]
cmp eax, ebp
cmovae eax, ebp
mov ecx, dword [edi + 4]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
mov edi, eax
cmp ebx, eax
jae 0x415b2f
push 0x2bb
push 0x45d03a
push 0x45c4f0
call fcn.0043bf69
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov edi, ebx
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x1c]
lea eax, [eax + edx*4]
mov esi, ebx
sub esi, edi
cmp esi, ebx
cmovae esi, ebx
mov ebx, eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x68]
lea edx, [esp + 0x78]
push dword [esp + 0x18]
push dword [esp + 0x38]
lea eax, [esp + 0x78]
push eax
call fcn.00414d30
add esp, 0xc
mov eax, ebp
cmp esi, ebp
jae 0x415b89
push 0x2bb
push 0x45d03a
push 0x45c4f0
call fcn.0043bf69
add esp, 0xc
mov eax, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0xc], ebx
lea ecx, [ebx + edi*4]
mov dword [esp + 4], ecx
mov ecx, esi
sub ecx, eax
cmp ecx, esi
cmovae ecx, esi
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x20]
and ecx, 0x1f
mov dword [esp], ecx
mov ecx, eax
mov dword [esp + 0x30], eax
test eax, eax
mov ecx, dword [esp + 0x98]
je 0x415c30
mov ebx, 0x20
sub ebx, dword [esp]
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x30]
jmp 0x415bfa
mov ecx, ebx
shl eax, cl
or eax, ebp
mov dword [esi], eax
mov ecx, dword [esp + 0x98]
add esi, 4
add edx, 1
add edi, 0xffffffff
je 0x415c30
lea eax, [edx - 1]
xor ebp, ebp
cmp dword [esp + 0x2c], eax
jbe 0x415c0d
mov eax, dword [esp + 0xc]
mov ebp, dword [eax + edx*4 - 4]
mov dword [esi], ebp
cmp dword [esp], 0
je 0x415bef
mov ecx, dword [esp]
shr ebp, cl
mov dword [esi], ebp
xor eax, eax
cmp dword [esp + 0x2c], edx
jbe 0x415be0
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edx*4]
jmp 0x415be0
mov eax, dword [esp + 0x28]
mov edx, eax
mov esi, dword [esp + 8]
cmp esi, eax
jae 0x415c5e
push 0x2bb
push 0x45d03a
push 0x45c4f0
call fcn.0043bf69
mov ecx, dword [esp + 0xa4]
add esp, 0xc
mov edx, esi
mov eax, esi
sub eax, edx
cmp eax, esi
cmovae eax, esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 4]
lea eax, [esi + eax*4]
mov dword [esp + 0x60], edx
mov dword [esp + 8], eax
mov dword [esp + 0x64], eax
mov eax, edx
mov dword [esp + 0x24], edx
test edx, edx
mov ebx, dword [esp + 0x18]
je 0x415d10
mov eax, 0x20
sub eax, dword [esp]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x24]
jmp 0x415cd0
mov ecx, dword [esp + 4]
shl eax, cl
mov ecx, dword [esp + 0x98]
or eax, ebp
mov dword [esi], eax
mov ebx, dword [esp + 0x18]
add esi, 4
add edx, 1
add edi, 0xffffffff
je 0x415d10
xor ebp, ebp
cmp dword [ecx], edx
jbe 0x415cdc
mov eax, dword [ecx + 4]
mov ebp, dword [eax + edx*4]
mov dword [esi], ebp
cmp dword [esp], 0
je 0x415cc5
mov ecx, dword [esp]
shr ebp, cl
mov dword [esi], ebp
lea ecx, [edx + 1]
xor eax, eax
mov ebx, dword [esp + 0x98]
cmp dword [ebx], ecx
mov ecx, dword [esp + 0x98]
jbe 0x415cb0
mov eax, dword [ecx + 4]
mov eax, dword [eax + edx*4 + 4]
jmp 0x415cb0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
cmp esi, edx
jae 0x415d55
mov eax, 0xffffffff
mov ecx, dword [esp]
shl eax, cl
not eax
mov ecx, dword [esp + 8]
and dword [ecx + esi*4], eax
lea eax, [esi + 1]
cmp eax, edx
jae 0x415d55
mov eax, dword [esp + 8]
lea eax, [eax + esi*4]
add eax, 4
mov ecx, esi
not ecx
add ecx, edx
shl ecx, 2
push ecx
push 0
push eax
call fcn.00434cb0
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
mov ebp, eax
cmovb ebp, ecx
mov esi, dword [esp + 0xc]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebp
lea ecx, [esp + 0x58]
lea edx, [esp + 0x70]
push ebx
mov edi, dword [esp + 0x38]
push edi
lea eax, [esp + 0x68]
push eax
call fcn.00414d30
add esp, 0xc
test ebp, ebp
je 0x415ead
mov ecx, ebp
mov eax, dword [esp + 0x2c]
lea eax, [esi + eax*4]
xor ebp, ebp
xor edx, edx
mov dword [esp + 4], ecx
jmp 0x415dbb
add edx, 1
mov ecx, dword [esp + 4]
cmp ecx, edx
je 0x415df0
mov esi, 0
cmp dword [esp + 0x30], edx
jbe 0x415dc9
mov esi, dword [eax + edx*4]
xor ecx, ecx
mov ebx, dword [esp + 0xc]
add ebp, dword [ebx + edx*4]
setb cl
mov edi, ebp
add edi, esi
mov ebp, ecx
adc ebp, 0
cmp dword [esp + 0x18], 0
je 0x415db0
mov dword [ebx + edx*4], edi
jmp 0x415db0
cmp ecx, 1
jne 0x415e20
xor eax, eax
mov ecx, 1
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
test byte [esp + 4], 1
jne 0x415e9f
jmp 0x415ead
mov ebp, ecx
and ebp, 0x7fffffe
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea esi, [eax + ecx*4]
add esi, 4
xor eax, eax
mov ecx, 1
mov ebx, dword [esp + 0x18]
jmp 0x415e5b
mov cl, dl
add eax, 2
mov edx, ebp
cmp ebp, eax
je 0x415e90
mov edi, dword [esi + eax*4 - 4]
not edi
xor edx, edx
add edi, ecx
setb cl
test ebx, ebx
je 0x415e70
mov dword [esi + eax*4 - 4], edi
mov dl, cl
mov edi, dword [esi + eax*4]
not edi
xor ecx, ecx
add edi, edx
setb dl
test ebx, ebx
je 0x415e50
mov dword [esi + eax*4], edi
jmp 0x415e50
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0xc]
test byte [esp + 4], 1
je 0x415ead
test ebx, ebx
je 0x415ead
mov edx, dword [esi + eax*4]
not edx
add ecx, edx
mov dword [esi + eax*4], ecx
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
cmp esi, ebp
jae 0x415ed2
push 0x2bb
push 0x45d03a
push 0x45c4f0
call fcn.0043bf69
add esp, 0xc
mov ebp, esi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 8]
lea esi, [ecx + eax*4]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x50]
lea edx, [esp + 0x70]
push ebx
push edi
lea eax, [esp + 0x60]
push eax
call fcn.00414d30
add esp, 0xc
mov edx, dword [esp + 0x14]
cmp edx, ebp
mov ebx, ebp
jae 0x415f37
mov eax, 0xffffffff
mov ecx, dword [esp]
shl eax, cl
not eax
and dword [esi + edx*4], eax
lea eax, [edx + 1]
cmp eax, ebx
jae 0x415f37
lea eax, [esi + edx*4]
add eax, 4
mov ecx, edx
not ecx
add ecx, ebx
shl ecx, 2
push ecx
push 0
push eax
call fcn.00434cb0
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x416000
mov eax, 0x20
sub eax, dword [esp]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add ecx, esi
mov edx, dword [esp + 0x10]
add ecx, edx
mov ebp, dword [esp + 0x30]
lea eax, [ecx + ebp*2]
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + eax*4]
add eax, 0xfffffffc
mov dword [esp + 4], eax
lea eax, [ebp - 2]
mov dword [esp + 0x24], eax
mov edi, ebp
neg edi
mov eax, 1
sub eax, ebp
mov dword [esp + 0x28], eax
lea eax, [ebp - 1]
mov dword [esp + 0xc], eax
lea eax, [esi + ebp]
add eax, edx
lea eax, [ecx + eax*4]
add eax, 0xfffffffc
xor esi, esi
jmp 0x415fb2
mov ecx, dword [esp + 8]
shr ebp, cl
or ebp, edx
mov dword [eax + esi*4], ebp
add esi, 0xffffffff
cmp edi, esi
je 0x416000
mov ecx, dword [esp + 0xc]
add ecx, esi
mov edx, 0
cmp ebx, ecx
jbe 0x415fc8
mov ecx, dword [esp + 4]
mov edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
cmp dword [esp], 0
je 0x415fab
mov ecx, dword [esp]
shl edx, cl
mov dword [eax + esi*4], edx
cmp dword [esp + 0x28], esi
je 0x416000
mov ecx, dword [esp + 0x24]
add ecx, esi
xor ebp, ebp
cmp ebx, ecx
jbe 0x415fa0
mov ecx, dword [esp + 4]
mov ebp, dword [ecx + esi*4 - 4]
jmp 0x415fa0
mov eax, dword [esp + 0x20]
add eax, eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
sub esi, edx
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
cmp eax, edx
cmovb edx, eax
sub eax, edx
cmp eax, esi
cmovae eax, esi
test eax, eax
je 0x4159f0
mov ecx, edx
shl edx, 2
mov ecx, dword [esp + 0x38]
add edx, dword [ecx + 4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
add edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + edx*4]
xor esi, esi
xor edx, edx
jmp 0x416083
xor ebx, ebx
mov ebp, dword [esp + 0x14]
add esi, dword [ebp + edx*4]
setb bl
add esi, edi
adc ebx, 0
mov dword [ebp + edx*4], esi
add edx, 1
mov esi, ebx
cmp eax, edx
je 0x4159f0
mov edi, 0
cmp dword [esp + 0x30], edx
jbe 0x416060
mov edi, dword [ecx + edx*4]
jmp 0x416060
mov eax, ecx
shr eax, 5
cmp eax, dword [edi]
jae 0x4160c3
mov edx, 0xffffffff
shl edx, cl
not edx
mov ecx, dword [edi + 4]
and dword [ecx + eax*4], edx
nop
nop
nop
nop
nop
add eax, 1
cmp eax, dword [edi]
jae 0x4160c3
mov ecx, dword [edi + 4]
mov dword [ecx + eax*4], 0
jmp 0x4160b0
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
shl eax, 2
push eax
push dword [esi + 4]
call fcn.004116e0
add esp, 8
push 8
push esi
call fcn.004116e0
add esp, 8
push esi
call fcn.0040e4c0
add esp, 4
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0043208f
mov eax, edi
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret