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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x7c]
mov eax, 4
shl eax, cl
xor ecx, ecx
sub edx, eax
cmovb edx, ecx
mov dword [esp + 0x48], edx
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 0x450b3b
mov eax, dword [esp + 0x6c]
add eax, 0xffffffff
mov dword [esp + 0x3c], eax
xor ebp, ebp
jmp 0x450751
mov eax, dword [esp + 0x28]
mov dword [esp], eax
cmp eax, dword [esp + 0x6c]
je 0x450b3b
cmp dword [esp + 0x7c], 0
je 0x450b30
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 0x450793
add ecx, 4
add dword [esp + 0x2c], 4
add dword [esp + 0x18], 8
cmp ecx, dword [esp + 0x7c]
jae 0x450740
cmp dword [esp + 0x74], esi
jbe 0x450780
mov eax, dword [esp + 0x78]
add eax, ecx
mov dword [esp + 0x20], eax
add eax, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x80]
lea eax, [eax + ecx*2]
mov dword [esp + 0x4c], eax
mov eax, esi
mov dword [esp + 0x14], ecx
jmp 0x45081d
add edi, dword [esp + 0x20]
imul edi, esi
mov esi, ebx
mov ebx, ecx
lea ecx, [edi*2]
add ecx, ebp
mov ebp, dword [esp + 0x1c]
push ebp
push dword [esp + 0x94]
push dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push edx
push ecx
push ebx
push edx
push 4
push dword [esi]
call eax
add esp, 0x24
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x70]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x98]
shr eax, cl
add ebp, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x74]
jae 0x450780
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
cmp edx, dword [esp + 0x20]
je 0x450b1b
mov edx, dword [esp + 0x48]
cmp ecx, edx
jae 0x450850
cmp eax, dword [esp + 0x44]
jne 0x450890
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx + 0xc]
imul ecx, dword [esp]
add ecx, dword [esp + 0x34]
jmp 0x45087b
xor ecx, edx
mov edx, eax
xor edx, esi
or edx, ecx
cmove ebp, dword [esp + 0x94]
jne 0x450898
mov ecx, dword [esp + 0x3c]
cmp dword [esp], ecx
mov ebx, dword [esp + 0xc]
jae 0x45089c
mov ecx, dword [ebx + 0xc]
imul ecx, dword [esp + 0x28]
add ecx, dword [esp + 0x70]
mov ebp, dword [ebx + 8]
shr ebp, 1
imul ebp, ecx
add ebp, ebp
add ebp, dword [ebx]
jmp 0x45089c
mov ecx, 0
cmovb ebp, ecx
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebx]
mov dword [esp + 0x24], ecx
mov edi, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
imul ebx, dword [esp]
mov esi, edi
shr esi, 1
mov edx, eax
sub eax, dword [esp + 0x70]
imul eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
lea ecx, [ecx + eax*2]
test ebp, ebp
je 0x450a20
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov edi, ebx
add edx, ebx
imul edx, esi
lea ecx, [edx*2]
add ecx, ebp
mov ebx, dword [esp + 0x8c]
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x4507c0
mov dword [esp + 4], ecx
mov cl, byte [ebx + 0x1c]
mov edx, dword [esp + 8]
mov eax, edx
shr eax, cl
mov dword [esp + 0x50], eax
mov ebx, 0xffffffff
shl ebx, cl
cmp ebx, 0xfffffffc
mov eax, 0xfffffffc
cmovbe ebx, eax
add edi, dword [esp + 0x2c]
imul esi, edi
mov dword [esp + 0x38], esi
lea esi, [esi*2]
add esi, ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
lea edi, [eax + ecx*2]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0x1c]
nop word cs:[eax + eax]
movzx eax, word [edi]
push ebp
push dword [esp + 0x94]
push eax
push edx
push esi
push dword [esp + 0x18]
push dword [ecx]
mov eax, dword [esp + 0xa8]
call dword [eax + 0x28]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x24]
add esp, 0x1c
add ebp, dword [esp + 0x50]
add esi, edx
add edi, 2
inc ebx
jne 0x450960
mov ebx, dword [esp + 0x40]
mov esi, ebx
neg esi
cmp esi, 3
mov ebp, dword [esp + 0x90]
ja 0x450a00
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
lea edi, [eax + ecx*2]
imul ebx, edx
sub edi, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
lea ebx, [eax + ecx*2]
mov ecx, dword [esp + 0x8c]
nop
movzx eax, word [ebx + esi*2]
push ebp
push eax
push edx
push edi
push dword [esp + 0x14]
push dword [ecx]
mov eax, dword [esp + 0xa4]
call dword [eax + 0x24]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x20]
add esp, 0x18
add esi, 1
add edi, edx
cmp esi, 4
jne 0x4509d0
mov ebp, dword [esp + 0x1c]
test ebp, ebp
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x70]
jne 0x4507fd
xor ebp, ebp
jmp 0x45080b
imul esi, edx
mov eax, dword [esp + 0x24]
lea esi, [eax + esi*2]
mov eax, edi
imul eax, dword [esp + 0x20]
imul ebx, edi
add ebx, eax
and eax, 0xfffffffe
sub esi, eax
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x450a6a
push dword [esp + 0x90]
push ecx
push edi
push dword [esp + 0x94]
push esi
push ebx
push 4
push dword [ebp]
call eax
add esp, 0x20
jmp 0x450b10
add esi, ebx
movzx eax, word [ecx]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx]
add ecx, ebx
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x90]
push ebx
push eax
push edi
push ecx
push esi
push dword [ebp]
call dword [ebp + 0x24]
add esp, 0x18
mov ebx, dword [esp + 4]
movzx eax, word [ebx + 2]
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx + 4]
add ecx, dword [esp + 8]
push dword [esp + 0x90]
push eax
push edi
push ecx
push esi
push dword [ebp]
call dword [ebp + 0x24]
add esp, 0x18
movzx eax, word [ebx + 4]
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx + 8]
mov ebx, dword [esp + 8]
add ecx, ebx
mov edx, dword [esp + 0x90]
push edx
push eax
push edi
push ecx
push esi
push dword [ebp]
call dword [ebp + 0x24]
add esp, 0x18
mov eax, dword [esp + 4]
movzx eax, word [eax + 6]
mov edx, dword [esp + 0x88]
add ebx, dword [edx + 0xc]
push dword [esp + 0x90]
push eax
push edi
push ebx
push esi
push dword [ebp]
call dword [ebp + 0x24]
add esp, 0x18
xor ebp, ebp
mov esi, dword [esp + 0x70]
jmp 0x45080b
lea edx, [eax + 5]
mov dword [esp + 0x10], edx
jmp 0x45082e
mov eax, dword [esp]
add eax, 1
jmp 0x450744
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret 0x34