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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
cmp dword [ebp + 0xc], 0xa
push ebx
push esi
push edi
mov ebx, edx
jae 0x45a660
mov eax, 0xffffffec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edi, word [ecx + 4]
mov edx, dword [ebp + 8]
add edx, ebx
add ecx, 6
lea esi, [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
movzx edx, word [ecx - 4]
mov dword [esp + 0x1c], eax
movzx eax, word [ecx - 6]
add ecx, eax
mov dword [esp + 0x44], ecx
add ecx, edx
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 8]
add ecx, 3
shr ecx, 2
mov dword [esp + 0x20], edi
lea edi, [ecx + ebx]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], edi
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 0xc]
sub ebx, dword [esp + 0x20]
add edi, ecx
sub ebx, edx
add ecx, edi
sub ebx, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
sub ebx, 6
mov edi, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], edi
cmp ebx, dword [ebp + 0xc]
ja 0x45a654
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x78]
call fcn.004592a0
cmp eax, 0xffffff88
ja 0x45a9f9
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x58]
call fcn.004592a0
cmp eax, 0xffffff88
ja 0x45a9f9
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x48]
call fcn.004592a0
cmp eax, 0xffffff88
ja 0x45a9f9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
add edx, ecx
mov eax, ebx
lea ecx, [esp + 0x68]
call fcn.004592a0
cmp eax, 0xffffff88
ja 0x45a9f9
lea ecx, [esp + 0x68]
call fcn.00459390
lea ecx, [esp + 0x48]
mov ebx, eax
call fcn.00459390
lea ecx, [esp + 0x58]
or ebx, eax
call fcn.00459390
lea ecx, [esp + 0x78]
or ebx, eax
call fcn.00459390
or ebx, eax
jne 0x45a934
mov eax, dword [esp + 0x38]
add eax, 0xfffffff9
cmp edi, eax
jae 0x45a934
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x1c]
and ecx, 0x1f
mov edi, dword [esp + 0x10]
mov edx, ebx
shl edx, cl
neg eax
and eax, 0x1f
mov ecx, eax
shr edx, cl
movzx ecx, word [esi + edx*4]
mov word [edi], cx
movzx ecx, byte [esi + edx*4 + 2]
add dword [esp + 0x7c], ecx
movzx edx, byte [esi + edx*4 + 3]
add dword [esp + 0x10], edx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
and ecx, 0x1f
shl edx, cl
mov edi, dword [esp + 0x14]
mov ecx, eax
shr edx, cl
movzx ecx, word [esi + edx*4]
mov word [edi], cx
movzx ecx, byte [esi + edx*4 + 2]
add dword [esp + 0x5c], ecx
movzx edx, byte [esi + edx*4 + 3]
add dword [esp + 0x14], edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x18]
and ecx, 0x1f
shl edx, cl
mov ecx, eax
shr edx, cl
movzx ecx, word [esi + edx*4]
mov word [edi], cx
movzx ecx, byte [esi + edx*4 + 2]
add dword [esp + 0x4c], ecx
movzx edx, byte [esi + edx*4 + 3]
add dword [esp + 0x18], edx
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x24]
and ecx, 0x1f
shl edx, cl
mov ecx, eax
shr edx, cl
movzx ecx, word [esi + edx*4]
mov word [edi], cx
movzx ecx, byte [esi + edx*4 + 2]
add dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x7c]
movzx edx, byte [esi + edx*4 + 3]
and ecx, 0x1f
shl ebx, cl
mov ecx, eax
add edi, edx
mov edx, dword [esp + 0x10]
shr ebx, cl
movzx ecx, word [esi + ebx*4]
mov word [edx], cx
movzx ecx, byte [esi + ebx*4 + 2]
add dword [esp + 0x7c], ecx
movzx edx, byte [esi + ebx*4 + 3]
add dword [esp + 0x10], edx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x14]
and ecx, 0x1f
shl edx, cl
mov ecx, eax
shr edx, cl
movzx ecx, word [esi + edx*4]
mov word [ebx], cx
movzx ecx, byte [esi + edx*4 + 2]
movzx edx, byte [esi + edx*4 + 3]
add dword [esp + 0x5c], ecx
add dword [esp + 0x14], edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x18]
and ecx, 0x1f
shl edx, cl
mov ecx, eax
shr edx, cl
movzx ecx, word [esi + edx*4]
mov word [ebx], cx
movzx ecx, byte [esi + edx*4 + 2]
movzx edx, byte [esi + edx*4 + 3]
add dword [esp + 0x4c], ecx
mov ebx, dword [esp + 0x6c]
add dword [esp + 0x18], edx
mov edx, dword [esp + 0x68]
mov ecx, ebx
and ecx, 0x1f
shl edx, cl
mov ecx, eax
shr edx, cl
mov ax, word [esi + edx*4]
mov word [edi], ax
movzx ecx, byte [esi + edx*4 + 2]
movzx edx, byte [esi + edx*4 + 3]
add ebx, ecx
add edi, edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x24], edi
call fcn.00459390
lea ecx, [esp + 0x48]
mov ebx, eax
call fcn.00459390
lea ecx, [esp + 0x58]
or ebx, eax
call fcn.00459390
lea ecx, [esp + 0x78]
or ebx, eax
call fcn.00459390
or ebx, eax
je 0x45a77c
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x10], eax
ja 0x45a654
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x14], ecx
ja 0x45a654
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x18], edx
ja 0x45a654
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov eax, esi
lea ebx, [esp + 0x80]
call fcn.0045a500
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
push edx
push eax
mov eax, esi
lea ebx, [esp + 0x68]
call fcn.0045a500
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov eax, esi
lea ebx, [esp + 0x60]
call fcn.0045a500
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
push eax
push ecx
mov eax, esi
lea ebx, [esp + 0x88]
mov ecx, edi
call fcn.0045a500
add esp, 0x20
mov eax, ebx
call fcn.00459410
mov edx, eax
lea eax, [esp + 0x48]
call fcn.00459410
and edx, eax
lea eax, [esp + 0x58]
call fcn.00459410
and edx, eax
lea eax, [esp + 0x78]
call fcn.00459410
test eax, edx
mov eax, 0xffffffec
je 0x45a9f9
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret