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

Disassembly:
push 0xffffffffffffffff
push 0x4ffe4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp ebx, edi
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
jle 0x45a4f0
mov esi, dword [esp + 0x7c]
cmp esi, edi
jle 0x45a4f0
cmp ebx, ecx
jne 0x45a1b7
cmp esi, eax
je 0x45a4f0
push 0x88
call fcn.004dc5c3
add esp, 4
mov dword [esp + 0x7c], eax
cmp eax, edi
mov dword [esp + 0x6c], edi
je 0x45a1df
mov ecx, eax
call fcn.00456c20
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x45a1e3
mov dword [esp + 0x14], edi
push 0xffffffffffffffff
push 0x18
push esi
push ebx
mov ecx, edi
mov dword [esp + 0x7c], 0xffffffff
call fcn.00457640
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 0xc]
lea ebp, [ebx + ebx*2]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x28], ebp
mov ebp, dword [edx + 0x14]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x7c], ecx
shl eax, 0xe
sub eax, 0x4000
sub ebp, edx
cdq
idiv ebx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
shl eax, 0xe
sub eax, 0x4000
cdq
idiv esi
test esi, esi
mov dword [esp + 0x60], eax
jle 0x45a4cf
xor edi, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], edi
jmp 0x45a265
mov edi, dword [esp + 0x10]
mov eax, edi
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov edx, eax
shl edx, 0xe
sub edi, edx
test ebx, ebx
jle 0x45a4a8
mov ecx, eax
mov ebp, 0x4000
imul ecx, dword [esp + 0x18]
sub ebp, edi
xor esi, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
jmp 0x45a2a4
mov ecx, dword [esp + 0x2c]
mov eax, esi
mov ebx, 0x4000
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov edx, eax
lea ecx, [ecx + eax*2]
add eax, ecx
mov ecx, dword [esp + 0x30]
shl edx, 0xe
add eax, ecx
sub esi, edx
mov ecx, eax
xor edx, edx
xor eax, eax
sub ebx, esi
mov dl, byte [ecx]
mov al, byte [ecx + 1]
inc ecx
mov dword [esp + 0x34], edx
inc ecx
xor edx, edx
mov dword [esp + 0x44], eax
xor eax, eax
mov dl, byte [ecx]
mov al, byte [ecx + 1]
inc ecx
mov dword [esp + 0x50], edx
inc ecx
xor edx, edx
mov dword [esp + 0x38], eax
xor eax, eax
mov dl, byte [ecx]
mov al, byte [ecx + 1]
inc ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], ebx
lea eax, [edx - 5]
xor edx, edx
mov dl, byte [ecx + eax]
add ecx, eax
inc ecx
xor eax, eax
imul edx, edi
mov al, byte [ecx]
inc ecx
mov dword [esp + 0x48], eax
xor eax, eax
mov al, byte [ecx]
inc ecx
mov dword [esp + 0x54], eax
xor eax, eax
mov al, byte [ecx]
inc ecx
mov dword [esp + 0x3c], eax
mov eax, ebp
imul eax, dword [esp + 0x34]
add eax, edx
cdq
and edx, 0x3fff
add edx, eax
mov eax, ebp
sar edx, 0xe
imul eax, dword [esp + 0x38]
imul edx, ebx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x3c]
imul edx, edi
add eax, edx
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x38]
sar eax, 0xe
imul eax, esi
add eax, edx
cdq
and edx, 0x3fff
add eax, edx
mov edx, ebp
imul edx, dword [esp + 0x40]
sar eax, 0xe
mov dword [esp + 0x3c], eax
xor eax, eax
mov al, byte [ecx]
imul eax, edi
add eax, edx
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x48]
mov ebx, eax
mov eax, ebp
imul eax, dword [esp + 0x44]
imul edx, edi
add eax, edx
cdq
and edx, 0x3fff
add eax, edx
sar ebx, 0xe
sar eax, 0xe
imul ebx, esi
imul eax, dword [esp + 0x1c]
add eax, ebx
cdq
and edx, 0x3fff
add eax, edx
mov ebx, eax
xor eax, eax
mov al, byte [ecx + 1]
mov ecx, ebp
imul ecx, dword [esp + 0x4c]
imul eax, edi
add eax, ecx
mov ecx, dword [esp + 0x54]
cdq
imul ecx, edi
and edx, 0x3fff
add edx, eax
mov eax, ebp
imul eax, dword [esp + 0x50]
sar edx, 0xe
imul edx, esi
add eax, ecx
mov dword [esp + 0x54], edx
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x54]
sar eax, 0xe
imul eax, dword [esp + 0x1c]
add eax, edx
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x3c]
sar ebx, 0xe
sar eax, 0xe
test edx, edx
jge 0x45a43c
xor edx, edx
jmp 0x45a449
cmp edx, 0xff
jle 0x45a449
mov edx, 0xff
test ebx, ebx
jge 0x45a451
xor ebx, ebx
jmp 0x45a45e
cmp ebx, 0xff
jle 0x45a45e
mov ebx, 0xff
test eax, eax
jge 0x45a466
xor eax, eax
jmp 0x45a472
cmp eax, 0xff
jle 0x45a472
mov eax, 0xff
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x20]
mov byte [ecx], dl
mov edx, dword [esp + 0x58]
inc ecx
add esi, edx
mov dword [esp + 0x20], esi
mov byte [ecx], bl
inc ecx
mov byte [ecx], al
mov eax, dword [esp + 0x24]
inc ecx
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x24], eax
jne 0x45a2a0
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x10]
add edx, eax
mov eax, dword [esp + 0x28]
add ecx, ebp
dec eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
jne 0x45a261
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
push ecx
mov ecx, edi
call fcn.00459ae0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
push ebp
call fcn.00459bb0
mov ecx, dword [esp + 0x68]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret