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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x4b6074]
mov ebx, edx
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
xor eax, ebp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 4], ebx
mov ecx, dword [edi]
mov esi, dword [eax]
mov eax, dword [ebx]
mov dword [esp + 0x34], ecx
cmp eax, esi
cmova esi, eax
cmp ecx, esi
mov ebx, esi
cmovb ebx, ecx
lea eax, [ebx + ebx]
mov dword [esp + 8], eax
lea eax, [eax + eax*2]
cmp eax, edx
mov eax, ecx
jbe 0x41403d
push 0x3cf
push 0x4ad7a0
push 0x4af7e8
call fcn.0047b26f
add esp, 0xc
mov eax, dword [edi]
shl eax, 2
push eax
push dword [edi + 4]
call fcn.00467158
add esp, 8
mov eax, dword [esp + 4]
cmp ebx, 0x18
mov edx, dword [eax]
jb 0x4142b6
test edx, edx
je 0x4142b4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x14], eax
je 0x414387
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 4]
mov ecx, ebx
mov dword [esp + 0x1c], edx
shr ecx, 1
mov dword [esp + 0x20], ecx
mov ecx, ebx
sub ecx, dword [esp + 0x20]
mov eax, dword [edi + 4]
lea edi, [esp + 0x78]
cmp edx, ecx
mov dword [esp + 0x24], ecx
mov dword [edi + 4], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
cmovb ecx, edx
lea edi, [esp + 0x78]
mov dword [edi], ecx
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
lea edi, [eax + ecx*4]
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], edi
mov eax, dword [esp + 0x14]
mov edi, ecx
cmp eax, ecx
lea ecx, [esp + 0x70]
cmovb edi, eax
mov eax, dword [esp + 4]
sub edx, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x70]
mov dword [ecx], edi
mov ecx, dword [esp + 4]
cmp edx, eax
cmovae edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
sub eax, edi
lea edi, [ecx + edi*4]
lea ecx, [esp + 0x60]
mov dword [ecx + 4], edi
mov edi, dword [esp + 0x20]
cmp eax, edi
cmovae eax, edi
mov dword [ecx], eax
lea eax, [esp + 0x68]
mov ecx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x2c]
lea edi, [ecx + ecx]
mov eax, dword [eax]
mov dword [esp + 0x30], edi
cmp eax, edi
mov edx, eax
cmovb edi, eax
cmp eax, ecx
cmovb ecx, eax
mov dword [esp + 0x28], edi
lea edi, [esp + 0x58]
sub edx, ecx
mov dword [esp + 0x14], ecx
mov ecx, eax
cmp edx, eax
cmovae edx, eax
sub ecx, dword [esp + 0x28]
mov dword [esp + 4], edx
lea edx, [esp + 0x58]
cmp ecx, eax
cmovae ecx, eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov edx, dword [esp + 0x28]
mov dword [edi], edx
mov edx, dword [esp + 0x14]
lea edx, [eax + edx*4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x28]
lea eax, [eax + edx*4]
lea edx, [esp + 0x50]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [edx], ecx
lea ecx, [esp + 0x58]
lea edx, [esp + 0x78]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00413fc2
add esp, 0xc
lea ecx, [esp + 0x50]
lea edx, [esp + 0x68]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [esp + 0x68]
push eax
call fcn.00413fc2
add esp, 0xc
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 4]
cmp dword [ecx], eax
jae 0x41438e
cmp ebx, edi
lea ecx, [esp + 0x80]
cmovae ebx, edi
mov edx, ebx
call fcn.00414d05
lea ecx, [esp + 0x48]
mov dword [esp + 0xc], edx
mov esi, eax
mov dword [ecx + 4], edx
lea edx, [esp + 0x80]
mov dword [ecx], eax
mov ebx, dword [edx + 4]
mov eax, dword [edx]
lea edx, [esp + 0x78]
push ebx
mov dword [esp + 0x14], eax
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00413fc2
add esp, 0xc
test edi, edi
je 0x4145ca
mov edi, dword [esp + 0x14]
mov dword [esp + 8], ebx
xor ebx, ebx
xor eax, eax
mov edx, dword [edi + eax*4]
cmp eax, esi
mov edi, 0
jae 0x414243
mov ecx, dword [esp + 0xc]
mov edi, dword [ecx + eax*4]
xor ecx, ecx
add edx, ebx
setb cl
add edx, edi
mov edi, dword [esp + 0x14]
adc ecx, 0
mov ebx, ecx
mov dword [edi + eax*4], edx
inc eax
cmp dword [esp + 4], eax
jne 0x414230
lea ecx, [esp + 0x48]
lea edx, [esp + 0x68]
push dword [esp + 8]
push dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
call fcn.00413fc2
add esp, 0xc
xor ecx, ecx
xor eax, eax
mov edx, dword [edi + eax*4]
cmp eax, esi
mov edi, 0
jae 0x414293
mov edi, dword [esp + 0xc]
mov edi, dword [edi + eax*4]
xor ebx, ebx
add edx, ecx
setb bl
add edx, edi
mov edi, dword [esp + 0x14]
adc ebx, 0
mov ecx, ebx
mov dword [edi + eax*4], edx
inc eax
cmp dword [esp + 4], eax
jne 0x414280
jmp 0x4145e4
xor edx, edx
mov esi, dword [ebp + 8]
test edx, edx
jle 0x4145e4
mov eax, dword [edi]
test eax, eax
jle 0x4145e4
mov ecx, dword [esp + 4]
mov ebx, dword [ecx + 4]
lea ecx, [ebx + edx*4]
mov edx, edi
mov edi, dword [esi + 4]
mov dword [esp + 8], ecx
mov ecx, dword [esi]
lea ecx, [edi + ecx*4]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 4]
mov edx, ebx
mov ebx, ecx
lea eax, [ecx + eax*4]
mov dword [esp + 4], eax
jmp 0x414305
add ebx, 4
cmp ebx, edi
jae 0x4145e4
mov edi, dword [esi + 4]
xor ecx, ecx
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
jae 0x414359
cmp ebx, dword [esp + 4]
jae 0x414359
mov eax, dword [edx]
mov ebx, dword [esp + 0x10]
add edi, 4
xor esi, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
xor ecx, ecx
mul dword [edi - 4]
add esi, dword [ebx]
setb cl
add esi, eax
adc ecx, edx
mov dword [ebx], esi
add ebx, 4
cmp edi, dword [esp + 0x14]
jae 0x414352
add edi, 4
cmp ebx, dword [esp + 4]
mov esi, ecx
jb 0x41432a
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 4]
cmp ebx, edi
jae 0x414371
xor eax, eax
add dword [ebx], ecx
setb al
add ebx, 4
cmp ebx, edi
mov ecx, eax
jb 0x414361
add edx, 4
mov ebx, dword [esp + 0x10]
cmp edx, dword [esp + 8]
jb 0x4142f7
jmp 0x4145e4
mov esi, ecx
jmp 0x4142b9
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x80]
inc edi
mov edx, edi
call fcn.00414d05
mov ebx, edx
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x80]
mov edx, edi
mov dword [esp + 8], eax
mov dword [esp + 0x48], eax
call fcn.00414d05
cmp dword [esp + 8], 0
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
je 0x41443f
mov eax, dword [esp + 0x34]
not esi
not eax
cmp eax, esi
cmova esi, eax
mov eax, dword [esp + 0x1c]
add esi, dword [esp + 0x20]
not eax
cmp esi, eax
cmova eax, esi
xor edi, edi
shl eax, 2
xor eax, 0xfffffffc
add eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
xor eax, eax
cmp dword [esp + 0xc], eax
mov edx, 0
jbe 0x41440c
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + eax*4]
xor esi, esi
cmp dword [esp + 0x10], eax
jbe 0x41441b
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + eax*4]
xor ecx, ecx
add edx, edi
setb cl
add edx, esi
mov edi, ecx
adc edi, 0
test ebx, ebx
je 0x414430
mov dword [ebx + eax*4], edx
inc eax
cmp dword [esp + 8], eax
jne 0x4143fa
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
test eax, eax
je 0x4144aa
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x64]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
cmp dword [esp + 0x10], ebx
mov ecx, 0
jbe 0x41447d
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + ebx*4]
xor edi, edi
cmp dword [esp + 8], ebx
jbe 0x41448c
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + ebx*4]
xor eax, eax
add ecx, esi
setb al
add ecx, edi
mov esi, eax
adc esi, 0
test edx, edx
je 0x4144a1
mov dword [edx + ebx*4], ecx
mov eax, dword [esp + 0xc]
inc ebx
cmp eax, ebx
jne 0x41446b
mov edx, dword [esp + 0x30]
lea ebx, [esp + 0x80]
mov ecx, ebx
or edx, 1
call fcn.00414d05
lea ecx, [esp + 0x38]
mov edi, edx
mov esi, eax
mov dword [ecx + 4], edx
mov dword [ecx], eax
lea eax, [esp + 0x40]
lea edx, [esp + 0x48]
push dword [ebx + 4]
push dword [ebx]
push eax
call fcn.00413fc2
add esp, 0xc
test esi, esi
mov dword [esp + 0xc], esi
je 0x41457e
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor esi, esi
inc esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov ecx, dword [edi + edx*4]
cmp dword [esp + 0x10], edx
mov eax, 0
jbe 0x414518
mov eax, dword [esp + 8]
mov eax, dword [eax + edx*4]
xor ebx, ebx
add ecx, esi
not eax
setb bl
add ecx, eax
mov esi, ebx
adc esi, 0
test edi, edi
je 0x41452f
mov dword [edi + edx*4], ecx
inc edx
cmp dword [esp + 0xc], edx
jne 0x414503
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
xor edx, edx
xor esi, esi
inc esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov ecx, dword [edi + edx*4]
cmp dword [esp + 0x10], edx
mov eax, 0
jbe 0x414560
mov eax, dword [esp + 8]
mov eax, dword [eax + edx*4]
xor ebx, ebx
add ecx, esi
not eax
setb bl
add ecx, eax
mov esi, ebx
adc esi, 0
test edi, edi
je 0x414577
mov dword [edi + edx*4], ecx
inc edx
cmp dword [esp + 0xc], edx
jne 0x41454b
cmp dword [esp + 4], 0
mov ecx, dword [esp + 0x14]
je 0x4145e4
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0xc], edx
xor edx, edx
mov edi, dword [ecx + edx*4]
cmp eax, edx
mov ecx, 0
jbe 0x4145ac
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + edx*4]
xor ebx, ebx
add edi, esi
setb bl
add edi, ecx
mov ecx, dword [esp + 0x14]
adc ebx, 0
mov esi, ebx
mov dword [ecx + edx*4], edi
inc edx
cmp dword [esp + 4], edx
jne 0x414599
jmp 0x4145e4
lea ecx, [esp + 0x48]
lea edx, [esp + 0x68]
push ebx
push dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
call fcn.00413fc2
add esp, 0xc
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.0046ef41
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret