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

Disassembly:
jmp 0x40cd80
sub esp, 0x50
mov eax, dword [0x4fe040]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
mov ebx, dword [esp + 0x64]
mov edx, ebx
push esi
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x60]
sub edx, ecx
push edi
mov edi, dword [esp + 0x74]
mov eax, ecx
sub eax, edi
mov dword [esp + 0x20], ecx
imul edx, eax
test edx, edx
js 0x40cdca
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, ebx
mov ebx, ecx
mov dword [esp + 0x6c], ebx
jmp 0x40ce0f
mov edx, dword [esp + 0x20]
mov eax, ebx
mov dword [esp + 0x1c], ecx
sub eax, edi
mov ecx, edi
sub ecx, edx
imul ecx, eax
test ecx, ecx
js 0x40cdff
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, edi
mov edi, ebx
mov ebx, eax
mov eax, edx
mov dword [esp + 0x6c], ebx
mov edx, dword [esp + 0x60]
jmp 0x40ce13
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x70]
cmp eax, edi
mov ecx, esi
cmovle ecx, edx
cmovle edx, esi
mov dword [esp + 0xc], ecx
mov esi, edi
mov ecx, eax
mov dword [esp + 0x28], edx
cmovle ecx, edi
cmovle esi, eax
cmovle edi, eax
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
cmp edi, ecx
jne 0x40ceef
test edi, edi
js 0x40d12b
mov eax, dword [esp + 0x24]
cmp eax, dword [esi + 4]
jge 0x40d12b
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x58]
push eax
push ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edx
call fcn.0040146f
xor ebx, ebx
add esp, 8
mov eax, dword [eax]
test eax, eax
cmovg ebx, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], eax
call fcn.004020cc
mov edi, dword [esi]
add esp, 8
mov ecx, dword [eax]
lea eax, [edi - 1]
cmp ecx, eax
cmovl eax, ecx
cmp ebx, eax
jge 0x40d12b
imul edi, dword [esp + 0x24]
mov cx, word [esp + 0x78]
mov dl, byte [esp + 0x7a]
add edi, ebx
lea eax, [edi + edi*2]
mov edi, dword [esp + 0xc]
add eax, dword [esi + 8]
inc ebx
mov word [eax], cx
mov byte [eax + 2], dl
jmp 0x40ce92
cmp edi, ebx
je 0x40d01b
mov eax, dword [esi + 4]
xor ecx, ecx
cmp dword [esp + 0x24], ecx
cmovg ecx, edi
dec eax
cmp ebx, eax
mov dword [esp + 0x14], ecx
cmovl eax, ebx
cmp ecx, eax
jg 0x40d017
mov edi, dword [esi]
mov eax, ebx
mov ebx, dword [esp + 0x24]
sub eax, ebx
sub edx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
sub esi, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x2c]
sub eax, ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], eax
mov eax, ecx
mov ecx, edx
mov dword [esp + 0x38], esi
sub eax, ebx
mov edx, esi
imul ecx, eax
imul edx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
mov eax, edx
mov esi, dword [esp + 0xc]
cdq
idiv dword [esp + 0x3c]
mov ebx, eax
mov eax, ecx
cdq
add esi, ebx
idiv dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
add ecx, eax
mov edx, eax
cmp esi, ecx
cmovle edx, ebx
add edx, dword [esp + 0xc]
cmp esi, ecx
mov esi, dword [esp + 0x30]
lea ecx, [edi - 1]
cmovle ebx, eax
mov eax, ecx
add ebx, dword [esp + 0xc]
mov dword [esp + 0x1c], ebx
xor ebx, ebx
test edx, edx
cmovg ebx, edx
cmp dword [esp + 0x1c], ecx
cmovl eax, dword [esp + 0x1c]
cmp ebx, eax
jg 0x40cfe1
nop dword [eax + eax]
imul edi, dword [esp + 0x14]
mov cx, word [esp + 0x78]
mov dl, byte [esp + 0x7a]
add edi, ebx
inc ebx
lea eax, [edi + edi*2]
add eax, dword [esi + 8]
mov word [eax], cx
mov byte [eax + 2], dl
mov edi, dword [esi]
lea ecx, [edi - 1]
cmp dword [esp + 0x1c], ecx
mov eax, ecx
cmovl eax, dword [esp + 0x1c]
cmp ebx, eax
jle 0x40cfb0
mov eax, dword [esp + 0x40]
add dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
inc ecx
mov eax, dword [esi + 4]
add edx, dword [esp + 0x38]
dec eax
mov ebx, dword [esp + 0x6c]
cmp ebx, eax
mov dword [esp + 0x14], ecx
cmovl eax, ebx
mov dword [esp + 0x20], edx
cmp ecx, eax
mov ecx, dword [esp + 0x18]
jle 0x40cf57
mov ecx, dword [esp + 0x2c]
cmp ebx, ecx
je 0x40d12b
mov eax, dword [esi + 4]
xor edx, edx
test ebx, ebx
cmovg edx, ebx
dec eax
cmp ecx, eax
mov dword [esp + 0x18], edx
cmovl eax, ecx
cmp edx, eax
jg 0x40d12b
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x40], eax
mov eax, ecx
sub eax, dword [esp + 0x24]
mov ecx, dword [esi]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov edi, eax
sub edi, dword [esp + 0xc]
sub eax, dword [esp + 0x10]
mov dword [esp + 0x20], edi
mov edi, edx
sub edi, dword [esp + 0x24]
sub edx, ebx
imul edi, dword [esp + 0x20]
imul edx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edx
mov eax, edx
cdq
idiv dword [esp + 0x40]
mov ebx, eax
mov eax, edi
cdq
idiv dword [esp + 0x38]
add ebx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add edx, eax
cmp ebx, edx
mov eax, edx
cmovle eax, ebx
cmovle ebx, edx
xor edi, edi
mov dword [esp + 0x34], ebx
test eax, eax
lea edx, [ecx - 1]
cmovg edi, eax
cmp ebx, edx
mov eax, edx
cmovl eax, ebx
cmp edi, eax
jg 0x40d0f1
nop
imul ecx, dword [esp + 0x18]
mov dx, word [esp + 0x78]
mov bl, byte [esp + 0x7a]
add ecx, edi
inc edi
lea eax, [ecx + ecx*2]
add eax, dword [esi + 8]
mov word [eax], dx
mov byte [eax + 2], bl
mov ecx, dword [esi]
lea ebx, [ecx - 1]
cmp dword [esp + 0x34], ebx
mov eax, ebx
cmovl eax, dword [esp + 0x34]
cmp edi, eax
jle 0x40d0c0
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
inc edx
add edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
dec eax
mov dword [esp + 0x18], edx
cmp dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edi
cmovl eax, dword [esp + 0x2c]
cmp edx, eax
mov edx, dword [esp + 0x14]
jle 0x40d081
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004018ca
add esp, 0x50
ret 0x1c