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

Disassembly:
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub esp, 0x98
push ebp
mov ebp, dword [esp + 0xa4]
lea eax, [esp + 0x38]
push eax
push ecx
push ebp
push edx
call fcn.00496340
add esp, 0x10
test eax, eax
je 0x458f07
mov eax, 1
pop ebp
add esp, 0x98
ret
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x54]
sub ecx, esi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xb4]
mov ecx, dword [ecx + 0xc]
mov edx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
imul eax, ecx
lea eax, [eax + ebx*4]
add eax, dword [ebp + 8]
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x5c]
imul ebp, edi
sub edx, edi
mov edi, dword [esp + 0xb8]
lea esi, [ebp + esi*4]
add esi, dword [edi + 8]
cmp byte [esp + 0x44], 0
je 0x4591d1
mov edi, dword [esp + 0x18]
mov ebp, edi
sar ebp, 3
mov dword [esp + 0x18], ebp
mov ebp, edi
and ebp, 7
mov dword [esp + 0x14], ebp
sub ebp, dword [esp + 0x50]
add ebp, ebx
lea ecx, [ecx + ebp*4]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov ecx, ebp
sub ecx, edi
test ebp, ebp
mov edi, dword [esp + 0x10]
lea ecx, [edi + ecx*4]
mov dword [esp + 0x24], ecx
jne 0x4590a3
test edx, edx
jle 0x4592c7
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
test ebx, ebx
jle 0x45907b
mov ecx, dword [esp + 0xbc]
and ecx, 0xffffff
mov edi, ebx
lea esp, [esp]
mov edx, dword [eax]
mov ebp, edx
and ebp, 0xffffff
cmp ebp, ecx
je 0x458ff0
mov dword [esi], edx
mov edx, dword [eax + 4]
mov ebp, edx
and ebp, 0xffffff
cmp ebp, ecx
je 0x459002
mov dword [esi + 4], edx
mov edx, dword [eax + 8]
mov ebp, edx
and ebp, 0xffffff
cmp ebp, ecx
je 0x459014
mov dword [esi + 8], edx
mov edx, dword [eax + 0xc]
mov ebp, edx
and ebp, 0xffffff
cmp ebp, ecx
je 0x459026
mov dword [esi + 0xc], edx
mov edx, dword [eax + 0x10]
mov ebp, edx
and ebp, 0xffffff
cmp ebp, ecx
je 0x459038
mov dword [esi + 0x10], edx
mov edx, dword [eax + 0x14]
mov ebp, edx
and ebp, 0xffffff
cmp ebp, ecx
je 0x45904a
mov dword [esi + 0x14], edx
mov edx, dword [eax + 0x18]
mov ebp, edx
and ebp, 0xffffff
cmp ebp, ecx
je 0x45905c
mov dword [esi + 0x18], edx
mov edx, dword [eax + 0x1c]
mov ebp, edx
and ebp, 0xffffff
cmp ebp, ecx
je 0x45906e
mov dword [esi + 0x1c], edx
add esi, 0x20
add eax, 0x20
dec edi
jne 0x458fe0
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
add esi, edi
add eax, edx
dec ecx
mov dword [esp + 0x10], ecx
jne 0x458fc5
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x98
ret
test edx, edx
jle 0x4592c7
mov dword [esp + 0x1c], edx
nop
mov ebx, dword [esp + 0x18]
test ebx, ebx
jle 0x45916b
mov ecx, dword [esp + 0xbc]
and ecx, 0xffffff
lea esp, [esp]
mov edx, dword [eax]
mov edi, edx
and edi, 0xffffff
cmp edi, ecx
je 0x4590e0
mov dword [esi], edx
mov edx, dword [eax + 4]
mov edi, edx
and edi, 0xffffff
cmp edi, ecx
je 0x4590f2
mov dword [esi + 4], edx
mov edx, dword [eax + 8]
mov edi, edx
and edi, 0xffffff
cmp edi, ecx
je 0x459104
mov dword [esi + 8], edx
mov edx, dword [eax + 0xc]
mov edi, edx
and edi, 0xffffff
cmp edi, ecx
je 0x459116
mov dword [esi + 0xc], edx
mov edx, dword [eax + 0x10]
mov edi, edx
and edi, 0xffffff
cmp edi, ecx
je 0x459128
mov dword [esi + 0x10], edx
mov edx, dword [eax + 0x14]
mov edi, edx
and edi, 0xffffff
cmp edi, ecx
je 0x45913a
mov dword [esi + 0x14], edx
mov edx, dword [eax + 0x18]
mov edi, edx
and edi, 0xffffff
cmp edi, ecx
je 0x45914c
mov dword [esi + 0x18], edx
mov edx, dword [eax + 0x1c]
mov edi, edx
and edi, 0xffffff
cmp edi, ecx
je 0x45915e
mov dword [esi + 0x1c], edx
add esi, 0x20
add eax, 0x20
dec ebx
jne 0x4590d0
test ebp, ebp
jle 0x4591a9
mov edi, dword [esp + 0xbc]
mov ebx, esi
and edi, 0xffffff
mov ecx, eax
sub ebx, eax
mov dword [esp + 0x10], ebp
mov edx, dword [ecx]
mov ebp, edx
and ebp, 0xffffff
cmp ebp, edi
je 0x459197
mov dword [ebx + ecx], edx
mov edx, dword [esp + 0x10]
add ecx, 4
dec edx
mov dword [esp + 0x10], edx
jne 0x459186
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add esi, edi
add eax, edx
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x4590b0
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x98
ret
mov edi, dword [esp + 0x84]
shl edi, 2
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x8c]
mov ebp, ecx
imul ebp, dword [esp + 0x94]
test edx, edx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x80]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x88]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], edi
jle 0x4592c7
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
lea esp, [esp]
mov edi, dword [esp + 0x14]
add edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
js 0x45925a
mov ebx, dword [esp + 0x3c]
add eax, ecx
sub edi, ebx
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x28]
xor edi, edi
test edx, edx
mov dword [esp + 0x38], eax
jle 0x4592ac
mov ecx, dword [esp + 0xbc]
and ecx, 0xffffff
add ebx, dword [esp + 0x34]
js 0x459284
mov edx, dword [esp + 0x40]
add eax, 4
sub ebx, edx
mov edx, dword [eax]
mov ebp, edx
and ebp, 0xffffff
cmp ebp, ecx
je 0x459295
mov dword [esi + edi*4], edx
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
add eax, ebp
inc edi
cmp edi, edx
jl 0x459275
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
add eax, ebp
add esi, ebx
dec edi
mov dword [esp + 0x20], edi
jne 0x459240
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x98
ret