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

Disassembly:
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub esp, 0x94
push ebp
mov ebp, dword [esp + 0xa0]
lea eax, [esp + 0x34]
push eax
push ecx
push ebp
push edx
call fcn.00496340
add esp, 0x10
test eax, eax
je 0x458be7
mov eax, 1
pop ebp
add esp, 0x94
ret
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x50]
sub ecx, esi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xb0]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, dword [esp + 0x58]
sub edx, edi
mov dword [esp + 0x18], ecx
imul ecx, edi
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0xc]
imul eax, edx
lea ecx, [ecx + esi*4]
mov esi, dword [esp + 0xb4]
mov edi, dword [esi + 8]
lea eax, [eax + ebx*4]
add eax, dword [ebp + 8]
add ecx, edi
cmp byte [esp + 0x40], 0
mov dword [esp + 0x20], edx
je 0x458de6
mov esi, dword [esp + 0x1c]
mov edi, esi
sar edi, 3
mov ebp, esi
and ebp, 7
mov dword [esp + 0x14], edi
mov edi, ebp
sub edi, dword [esp + 0x4c]
mov dword [esp + 0x20], ebp
add edi, ebx
lea edx, [edx + edi*4]
mov dword [esp + 0x1c], edx
mov edx, ebp
sub edx, esi
test ebp, ebp
mov esi, dword [esp + 0x18]
lea edx, [esi + edx*4]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
jne 0x458d29
test edx, edx
jle 0x458ebd
mov ebx, dword [esp + 0x14]
mov ebp, edx
mov edx, dword [esp + 0xb8]
lea esp, [esp]
test ebx, ebx
jle 0x458d0d
mov edi, ebx
mov esi, dword [eax]
cmp esi, edx
je 0x458cbe
mov dword [ecx], esi
mov esi, dword [eax + 4]
cmp esi, edx
je 0x458cc8
mov dword [ecx + 4], esi
mov esi, dword [eax + 8]
cmp esi, edx
je 0x458cd2
mov dword [ecx + 8], esi
mov esi, dword [eax + 0xc]
cmp esi, edx
je 0x458cdc
mov dword [ecx + 0xc], esi
mov esi, dword [eax + 0x10]
cmp esi, edx
je 0x458ce6
mov dword [ecx + 0x10], esi
mov esi, dword [eax + 0x14]
cmp esi, edx
je 0x458cf0
mov dword [ecx + 0x14], esi
mov esi, dword [eax + 0x18]
cmp esi, edx
je 0x458cfa
mov dword [ecx + 0x18], esi
mov esi, dword [eax + 0x1c]
cmp esi, edx
je 0x458d04
mov dword [ecx + 0x1c], esi
add ecx, 0x20
add eax, 0x20
dec edi
jne 0x458cb6
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add ecx, esi
add eax, edi
dec ebp
jne 0x458cb0
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x94
ret
test edx, edx
jle 0x458ebd
mov esi, dword [esp + 0xb8]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
test ebx, ebx
jle 0x458d9d
mov edi, ebx
mov edx, dword [eax]
cmp edx, esi
je 0x458d4e
mov dword [ecx], edx
mov edx, dword [eax + 4]
cmp edx, esi
je 0x458d58
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
cmp edx, esi
je 0x458d62
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
cmp edx, esi
je 0x458d6c
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
cmp edx, esi
je 0x458d76
mov dword [ecx + 0x10], edx
mov edx, dword [eax + 0x14]
cmp edx, esi
je 0x458d80
mov dword [ecx + 0x14], edx
mov edx, dword [eax + 0x18]
cmp edx, esi
je 0x458d8a
mov dword [ecx + 0x18], edx
mov edx, dword [eax + 0x1c]
cmp edx, esi
je 0x458d94
mov dword [ecx + 0x1c], edx
add ecx, 0x20
add eax, 0x20
dec edi
jne 0x458d46
test ebp, ebp
jle 0x458dbe
mov ebx, ecx
mov edx, eax
sub ebx, eax
mov edi, dword [edx]
cmp edi, esi
je 0x458db0
mov dword [ebx + edx], edi
add edx, 4
dec ebp
jne 0x458da7
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add ecx, edx
mov edx, dword [esp + 0x10]
add eax, edi
dec edx
mov dword [esp + 0x10], edx
jne 0x458d40
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x94
ret
mov esi, dword [esp + 0x80]
shl esi, 2
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x84]
mov ebp, edx
imul ebp, dword [esp + 0x90]
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x458ebd
mov dword [esp + 0x10], esi
jmp 0x458e50
mov edx, dword [esp + 0x20]
lea ecx, [ecx]
mov esi, dword [esp + 0x14]
add esi, dword [esp + 0x38]
mov dword [esp + 0x14], esi
js 0x458e68
add eax, edx
sub esi, dword [esp + 0x24]
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x30]
xor edx, edx
test ebx, ebx
mov dword [esp + 0x34], eax
jle 0x458ea6
lea ebx, [ebx]
add edi, dword [esp + 0x3c]
js 0x458e8f
mov esi, dword [esp + 0x28]
add eax, 4
sub edi, esi
mov esi, dword [eax]
cmp esi, dword [esp + 0xb8]
je 0x458e9d
mov dword [ecx + edx*4], esi
add eax, dword [esp + 0x2c]
inc edx
cmp edx, ebx
jl 0x458e80
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
add eax, ebp
add ecx, esi
dec edx
mov dword [esp + 0x10], edx
jne 0x458e49
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x94
ret