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

Disassembly:
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esi + eax*4]
test ecx, ecx
mov dword [esp + 0x24], edx
je 0x4a85d5
test eax, eax
mov ecx, edx
je 0x4a85d9
mov ecx, dword [esi + eax*4 - 4]
mov edi, dword [esp + 0x60]
test edi, edi
je 0x4a85ee
mov edi, dword [esp + 0x10]
dec edi
cmp eax, edi
jne 0x4a85ee
mov eax, edx
jmp 0x4a85f2
mov eax, dword [esi + eax*4 + 4]
movsx esi, word [edx]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x98]
push 1
push eax
push ecx
call fcn.004a72d4
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp eax, edx
jae 0x4a8682
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
movsx ecx, word [eax]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x38], ecx
movsx esi, word [edx + 0x80]
movsx ecx, word [eax]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4a86fb
cmp word [esp + 0x9a], 0
jne 0x4a86fb
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x6c]
sub eax, esi
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, ebp
shl edx, 2
js 0x4a86d0
shl eax, 7
add eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x4a86ef
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4a86ef
lea eax, [edx - 1]
jmp 0x4a86ef
shl eax, 7
sub eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x4a86ed
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4a86ed
lea eax, [edx - 1]
neg eax
mov ebp, dword [esp + 0x2c]
mov word [esp + 0x9a], ax
mov dword [esp + 0x9a], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4a8778
cmp word [esp + 0xa8], 0
jne 0x4a8778
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edx
mov ebp, dword [esp + 0x7c]
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, ebp
shl edx, 2
js 0x4a874d
shl eax, 7
add eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x4a876c
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4a876c
lea eax, [edx - 1]
jmp 0x4a876c
shl eax, 7
sub eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x4a876a
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4a876a
lea eax, [edx - 1]
neg eax
mov ebp, dword [esp + 0x2c]
mov word [esp + 0xa8], ax
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x4a87ff
cmp word [esp + 0xb8], 0
jne 0x4a87ff
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x74]
lea eax, [edx + edx]
mov edx, eax
mov eax, dword [esp + 0x20]
sub eax, edx
mov edx, dword [esp + 0x1c]
add eax, edx
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, ebp
test edx, edx
jl 0x4a87d4
shl eax, 7
add eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x4a87f3
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4a87f3
lea eax, [edx - 1]
jmp 0x4a87f3
shl eax, 7
sub eax, edx
cdq
shl ebp, 8
idiv ebp
test ecx, ecx
jle 0x4a87f1
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4a87f1
lea eax, [edx - 1]
neg eax
mov ebp, dword [esp + 0x2c]
mov word [esp + 0xb8], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4a887e
cmp word [esp + 0xaa], 0
jne 0x4a887e
mov eax, dword [esp + 0x40]
sub eax, ebx
mov ebx, dword [esp + 0x38]
sub eax, ebx
add eax, edi
mov edi, dword [esp + 0x84]
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*4]
mov eax, edi
test edx, edx
jl 0x4a8857
shl eax, 7
add eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x4a8876
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4a8876
lea eax, [edx - 1]
jmp 0x4a8876
shl eax, 7
sub eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x4a8874
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4a8874
lea eax, [edx - 1]
neg eax
mov word [esp + 0xaa], ax
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x4a8902
cmp word [esp + 0x9c], 0
jne 0x4a8902
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x80]
lea eax, [edx + edx]
mov edx, eax
mov eax, esi
sub eax, edx
mov edx, dword [esp + 0x58]
add eax, edx
imul eax, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, edi
test edx, edx
jl 0x4a88db
shl eax, 7
add eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x4a88fa
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4a88fa
lea eax, [edx - 1]
jmp 0x4a88fa
shl eax, 7
sub eax, edx
cdq
shl edi, 8
idiv edi
test ecx, ecx
jle 0x4a88f8
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x4a88f8
lea eax, [edx - 1]
neg eax
mov word [esp + 0x9c], ax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x120]
lea edx, [esp + 0x9c]
push ecx
push edx
push ebp
push eax
call dword [esp + 0xa4]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov eax, 0x80
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x64]
add ecx, eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x5c]
add ecx, eax
add edx, eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0x24]
add esp, 0x14
add eax, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x28], esi
cmp eax, ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x3c], eax
jbe 0x4a863e
mov edx, dword [ebp + 0x24]
mov eax, dword [esp + 0x44]
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4a85b8
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x11c]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
mov ecx, dword [edi + 0x20]
inc eax
add edx, 0x18
add ebx, 4
adc al, 0x8b
dec esp
and al, 0x40
push ecx
call 0x505ba3
add esp, 4
mov ecx, dword [esi + 0x14]
xor eax, eax
pop edi
cmp ecx, ebp
pop esi
pop ebp
setne al
pop ebx
add esp, 0x28
ret 0xc