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

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x60]
push ebx
push ebp
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x58]
push edi
mov edi, dword [esp + 0x60]
xor edx, edx
sub ecx, eax
sub esi, edi
cmp ecx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
jne 0x412f03
cmp esi, edx
je 0x4132fd
mov dword [esp + 0x24], 1
cmp esi, edx
jge 0x412f11
mov dword [esp + 0x20], 0xffffffff
neg esi
jmp 0x412f19
jge 0x412eeb
mov dword [esp + 0x24], 0xffffffff
neg ecx
jmp 0x412ef3
mov dword [esp + 0x20], 1
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
sub ebp, dword [esp + 0x6c]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x50]
sub edi, eax
sub ebx, edx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x48], eax
mov eax, edi
mov dword [esp + 0x6c], edx
cmp ecx, esi
cdq
jge 0x413132
idiv esi
mov dword [esp + 0x58], eax
mov eax, ebx
cdq
idiv esi
mov dword [esp + 0x2c], eax
mov eax, ebp
cdq
idiv esi
mov edx, 1
mov dword [esp + 0x34], eax
or eax, 0xffffffff
test edi, edi
jge 0x412f84
mov dword [esp + 0x50], eax
neg edi
jmp 0x412f88
mov dword [esp + 0x50], edx
test ebx, ebx
jge 0x412f94
mov dword [esp + 0x64], eax
neg ebx
jmp 0x412f98
mov dword [esp + 0x64], edx
test ebp, ebp
jge 0x412fa4
mov dword [esp + 0x54], eax
neg ebp
jmp 0x412fa8
mov dword [esp + 0x54], edx
mov eax, edi
cdq
idiv esi
mov eax, ebx
mov dword [esp + 0x68], edx
cdq
idiv esi
mov eax, ebp
mov dword [esp + 0x28], edx
cdq
idiv esi
test esi, esi
mov dword [esp + 0x30], edx
jle 0x4132fd
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x74], esi
shl eax, 4
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
shl eax, 4
lea edi, [eax + edx]
sub edx, ebx
mov dword [esp + 0x60], edi
lea eax, [eax + ebx + 5]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x38]
cmp ebx, edx
jg 0x41304f
cmp edx, dword [esp + 0x3c]
jge 0x41304f
mov ebp, dword [esp + 0x5c]
mov edx, dword [eax - 5]
cmp edx, ebp
mov edx, dword [esp + 0x48]
jle 0x41302e
mov bl, byte [esp + 0x70]
mov dword [eax - 5], ebp
mov byte [eax], bl
mov bl, byte [esp + 0x6c]
mov byte [eax + 1], dl
mov byte [eax - 1], bl
cmp dword [edi], ebp
jge 0x413057
mov bl, byte [esp + 0x70]
mov dword [edi], ebp
mov byte [edi + 6], dl
mov edi, dword [esp + 0x78]
mov byte [edi + eax], bl
mov edi, dword [esp + 0x60]
mov bl, byte [esp + 0x6c]
mov byte [edi + 4], bl
jmp 0x413057
mov ebp, dword [esp + 0x5c]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x4c]
add ebx, edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x40]
add eax, ebx
add edi, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x60], edi
add ebx, ecx
cmp ebx, esi
mov dword [esp + 0x10], ebx
jl 0x413093
sub ebx, esi
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x24]
add ebp, ebx
mov dword [esp + 0x5c], ebp
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x68]
add ebx, ebp
cmp ebx, esi
mov dword [esp + 0x14], ebx
jl 0x4130b3
mov ebp, ebx
mov ebx, dword [esp + 0x50]
sub ebp, esi
add edx, ebx
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x28]
add edx, ebx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x18]
add edx, ebp
mov dword [esp + 0x18], edx
cmp edx, esi
mov edx, dword [esp + 0x70]
jl 0x4130e3
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x64]
sub ebp, esi
add edx, ebx
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
add edx, ebx
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x1c]
add edx, ebp
mov dword [esp + 0x1c], edx
cmp edx, esi
mov edx, dword [esp + 0x6c]
jl 0x413113
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
sub ebp, esi
add edx, ebx
mov dword [esp + 0x1c], ebp
add edx, dword [esp + 0x34]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x74]
dec edx
mov dword [esp + 0x74], edx
jne 0x412ffa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
idiv ecx
mov dword [esp + 0x58], eax
mov eax, ebx
cdq
idiv ecx
mov dword [esp + 0x2c], eax
mov eax, ebp
cdq
idiv ecx
mov edx, 1
mov dword [esp + 0x34], eax
or eax, 0xffffffff
test edi, edi
jge 0x41315e
mov dword [esp + 0x50], eax
neg edi
jmp 0x413162
mov dword [esp + 0x50], edx
test ebx, ebx
jge 0x41316e
mov dword [esp + 0x64], eax
neg ebx
jmp 0x413172
mov dword [esp + 0x64], edx
test ebp, ebp
jge 0x41317e
mov dword [esp + 0x54], eax
neg ebp
jmp 0x413182
mov dword [esp + 0x54], edx
mov eax, edi
cdq
idiv ecx
mov eax, ebx
mov dword [esp + 0x68], edx
cdq
idiv ecx
mov eax, ebp
mov dword [esp + 0x28], edx
cdq
idiv ecx
test ecx, ecx
mov dword [esp + 0x30], edx
jle 0x4132fd
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x60]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x74], ecx
shl eax, 4
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x78]
shl ebp, 4
lea edi, [eax + ebp]
sub eax, edx
mov dword [esp + 0x60], edi
lea ebp, [edx + ebp + 5]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
cmp edx, eax
jg 0x413230
cmp eax, dword [esp + 0x3c]
jge 0x413230
mov eax, dword [esp + 0x5c]
mov edx, dword [ebp - 5]
cmp edx, eax
mov edx, dword [esp + 0x48]
jle 0x41320b
mov bl, byte [esp + 0x70]
mov dword [ebp - 5], eax
mov byte [ebp], bl
mov ebx, dword [esp + 0x6c]
mov byte [ebp + 1], dl
mov byte [ebp - 1], bl
jmp 0x41320f
mov ebx, dword [esp + 0x6c]
cmp dword [edi], eax
jge 0x41323c
mov bl, byte [esp + 0x70]
mov dword [edi], eax
mov byte [edi + 6], dl
mov edi, dword [esp + 0x78]
mov byte [edi + ebp], bl
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x6c]
mov byte [edi + 4], bl
jmp 0x41323c
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x6c]
add eax, dword [esp + 0x24]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
add eax, esi
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x41326c
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
add ebp, eax
add edi, eax
mov dword [esp + 0x60], edi
mov eax, dword [esp + 0x68]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp eax, ecx
jl 0x413288
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
add edx, eax
mov eax, dword [esp + 0x58]
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x28]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4132b6
mov edx, dword [esp + 0x64]
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
add eax, edx
jmp 0x4132ba
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x2c]
add eax, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4132e4
mov edx, eax
mov eax, dword [esp + 0x54]
sub edx, ecx
add ebx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x74]
add ebx, edx
dec eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], eax
jne 0x4131d4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret