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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ebx, ecx
mov ecx, dword [esp + 0x98]
mov ebp, dword [esp + 0x7c]
mov eax, 3
shl eax, cl
xor ecx, ecx
sub ebp, eax
cmovb ebp, ecx
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov ecx, edx
sub ecx, esi
sub edx, eax
cmp ecx, eax
cmovbe edx, esi
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x68]
mov dword [esp], eax
cmp eax, dword [esp + 0x6c]
jae 0x4520ab
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x6c]
add eax, 0xffffffff
mov dword [esp + 0x40], eax
xor edi, edi
mov dword [esp + 4], ebx
mov dword [esp + 0x48], ebp
jmp 0x451ce1
mov eax, dword [esp + 0x28]
mov dword [esp], eax
cmp eax, dword [esp + 0x6c]
je 0x4520ab
cmp dword [esp + 0x7c], 0
je 0x4520a0
mov eax, dword [esp]
add eax, 1
mov dword [esp + 0x28], eax
xor ecx, ecx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x2c], eax
jmp 0x451d23
add ecx, 3
add dword [esp + 0x2c], 3
add dword [esp + 0x18], 6
cmp ecx, dword [esp + 0x7c]
jae 0x451cd0
cmp dword [esp + 0x74], esi
jbe 0x451d10
mov eax, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 0x1c], eax
add eax, 3
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x80]
lea eax, [eax + ecx*2]
mov dword [esp + 0x4c], eax
mov eax, esi
mov dword [esp + 8], ecx
jmp 0x451da8
add ecx, dword [esp + 0x1c]
imul ecx, esi
lea ecx, [ebx + ecx*2]
mov ebx, edi
mov edi, dword [esp + 0x20]
push edi
push dword [esp + 0x94]
push dword [esp + 0x1c]
push ebp
push ecx
push ebx
push ebp
push 3
push dword [edx]
call eax
mov edx, dword [esp + 0xb0]
add esp, 0x24
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 4]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x98]
shr eax, cl
add edi, eax
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x74]
jae 0x451d10
mov ebp, edi
lea edi, [eax + 1]
cmp edi, dword [esp + 0x1c]
je 0x452095
mov ebx, esi
mov esi, dword [esp + 0x48]
cmp ecx, esi
mov dword [esp + 0xc], edi
jae 0x451de0
cmp eax, dword [esp + 0x44]
jne 0x451e20
mov edi, dword [esp + 4]
mov ecx, dword [edi + 0xc]
imul ecx, dword [esp]
add ecx, dword [esp + 0x38]
jmp 0x451e10
xor ecx, esi
mov edx, eax
xor edx, ebx
or edx, ecx
cmove ebp, dword [esp + 0x94]
jne 0x451e2a
mov ecx, dword [esp + 0x40]
cmp dword [esp], ecx
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 4]
jae 0x451e35
mov ecx, dword [edi + 0xc]
imul ecx, dword [esp + 0x28]
add ecx, ebx
mov ebp, dword [edi + 8]
shr ebp, 1
imul ebp, ecx
add ebp, ebp
add ebp, dword [edi]
jmp 0x451e35
mov ecx, 0
cmovb ebp, ecx
jmp 0x451e31
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 4]
mov ecx, dword [edi]
mov dword [esp + 0x24], ecx
mov ecx, ebx
mov ebx, dword [edi + 8]
mov esi, dword [edi + 0xc]
imul esi, dword [esp]
mov dword [esp + 0x10], esi
mov esi, ebx
shr esi, 1
mov edi, eax
sub eax, ecx
imul eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
lea ecx, [ecx + eax*2]
mov dword [esp + 0x20], ebp
test ebp, ebp
je 0x451fa0
mov dword [esp + 0x14], ecx
mov ebp, ebx
mov ecx, dword [esp + 0x10]
add edi, ecx
imul edi, esi
mov ebx, dword [esp + 0x24]
lea edi, [ebx + edi*2]
mov eax, dword [edx + 0x34]
test eax, eax
jne 0x451d50
mov dword [esp + 0x14], edi
mov edi, ecx
mov cl, byte [edx + 0x1c]
mov eax, ebp
shr ebp, cl
mov dword [esp + 0x50], ebp
mov ebp, 0xffffffff
shl ebp, cl
mov ecx, eax
cmp ebp, 0xfffffffd
mov eax, 0xfffffffd
cmovbe ebp, eax
add edi, dword [esp + 0x2c]
imul esi, edi
mov dword [esp + 0x3c], esi
lea edi, [ebx + esi*2]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
lea ebx, [eax + esi*2]
mov dword [esp + 0x10], ebp
mov esi, ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
nop
movzx eax, word [ebx]
push ebp
push dword [esp + 0x94]
push eax
push ecx
push edi
push dword [esp + 0x28]
push dword [edx]
mov eax, dword [esp + 0xa8]
call dword [eax + 0x28]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0xa8]
add esp, 0x1c
add ebp, dword [esp + 0x50]
add edi, ecx
add ebx, 2
inc esi
jne 0x451ee0
mov ebx, dword [esp + 0x10]
mov esi, ebx
neg esi
cmp esi, 2
mov ebp, dword [esp + 0x90]
ja 0x451f80
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
lea edi, [eax + edi*2]
imul ebx, ecx
sub edi, ebx
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
lea ebx, [eax + ebx*2]
nop word [eax + eax]
movzx eax, word [ebx + esi*2]
push ebp
push eax
push ecx
push edi
push dword [esp + 0x24]
push dword [edx]
mov eax, dword [esp + 0xa4]
call dword [eax + 0x24]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0xa4]
add esp, 0x18
add esi, 1
add edi, ecx
cmp esi, 3
jne 0x451f50
mov edi, dword [esp + 0x20]
test edi, edi
mov ebx, dword [esp + 4]
mov esi, dword [esp + 0x70]
jne 0x451d88
xor edi, edi
jmp 0x451d96
imul esi, edi
mov eax, dword [esp + 0x24]
lea ebp, [eax + esi*2]
mov eax, ebx
imul eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
imul edi, ebx
add edi, eax
and eax, 0xfffffffe
sub ebp, eax
mov eax, dword [edx + 0x30]
test eax, eax
mov esi, ebx
je 0x451fef
push dword [esp + 0x90]
push ecx
push esi
push dword [esp + 0x94]
push ebp
push edi
push 3
push dword [edx]
call eax
mov edx, dword [esp + 0xac]
add esp, 0x20
jmp 0x45208a
add ebp, edi
movzx eax, word [ecx]
mov ebx, ecx
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx]
add ecx, edi
mov edx, dword [esp + 0x90]
push edx
push eax
push esi
push ecx
push ebp
mov eax, dword [esp + 0xa0]
push dword [eax]
mov eax, dword [esp + 0xa4]
call dword [eax + 0x24]
add esp, 0x18
movzx eax, word [ebx + 2]
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx + 4]
add ecx, edi
push dword [esp + 0x90]
push eax
push esi
push ecx
push ebp
mov eax, dword [esp + 0xa0]
push dword [eax]
mov eax, dword [esp + 0xa4]
call dword [eax + 0x24]
add esp, 0x18
movzx eax, word [ebx + 4]
mov ecx, dword [esp + 0x88]
add edi, dword [ecx + 8]
push dword [esp + 0x90]
push eax
push esi
push edi
push ebp
mov eax, dword [esp + 0xa0]
push dword [eax]
mov eax, dword [esp + 0xa4]
call dword [eax + 0x24]
mov edx, dword [esp + 0xa4]
add esp, 0x18
xor edi, edi
mov esi, dword [esp + 0x70]
jmp 0x451d96
mov ebx, esi
lea edi, [eax + 4]
jmp 0x451db9
mov eax, dword [esp]
add eax, 1
jmp 0x451cd4
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret 0x34