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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, 1
sub esp, 0x7c
mov dword [esp + 0x58], eax
mov eax, ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ecx
mov ecx, edx
mov edx, dword [esp + 0x58]
shl eax, cl
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x68], eax
mov edx, dword [edx + 8]
add eax, edx
mov dword [esp + 0x6c], edx
mov edx, dword [ecx + 0xc]
mov dword [ecx + 8], eax
cmp eax, edx
jle 0x87a82f
mov ecx, dword [ecx]
shl ebx, cl
lea eax, [ebx + edx]
mov edx, dword [esp + 0x58]
mov dword [edx + 0xc], eax
test byte [esp + 0xbc], 1
jne 0x87ac16
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [edx + 4]
mov dword [esp], eax
call fcn.0090e490
mov ecx, dword [esp + 0x58]
mov dword [ecx + 4], eax
mov eax, ecx
mov eax, dword [eax + 4]
test eax, eax
je 0x87ac36
mov ebp, dword [esp + 0x6c]
test ebp, ebp
js 0x87ac36
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x68]
shl edx, 2
mov esi, edx
add esi, dword [ecx + 4]
test edi, edi
mov dword [esp + 0x5c], edx
jle 0x87a876
xor eax, eax
lea esi, [esi]
mov word [esi + eax*4 + 2], 0
mov word [esi + eax*4], 0xffff
add eax, 1
cmp eax, dword [esp + 0x68]
jne 0x87a860
mov ebx, dword [esp + 0x50]
test ebx, ebx
jle 0x87a9bf
mov eax, dword [esp + 0xbc]
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x90]
and eax, 2
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0
sub eax, 1
mov dword [esp + 0x44], eax
cmp dword [esp + 0x98], 1
je 0x87abc0
cmp dword [esp + 0x98], 2
je 0x87abb0
mov eax, dword [ebp]
cmp dword [esp + 0xa4], 1
je 0x87aba0
cmp dword [esp + 0xa4], 2
je 0x87ab94
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
test eax, eax
jle 0x87a98f
mov ecx, dword [esp + 0xa8]
mov ebx, dword [esp + 0x78]
test ecx, ecx
je 0x87a940
cmp dword [esp + 0xb0], 1
je 0x87abd5
cmp dword [esp + 0xb0], 2
je 0x87abc9
mov ecx, dword [esp + 0x70]
mov ebx, dword [ecx]
lea esi, [esi]
sub eax, dword [esp + 0xb8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x87aae8
cmp dword [esp + 0xb8], 0x1f
mov eax, 0xffffffff
jg 0x87a978
movzx ecx, byte [esp + 0xb8]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, edx
mov edi, dword [esp + 0x40]
test edi, edi
jle 0x87a98f
cmp eax, dword [esp + 0xb4]
je 0x87aaf6
add dword [esp + 0x78], 1
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0x50]
add dword [esp + 0x70], eax
add dword [esp + 0x74], edx
add ebp, dword [esp + 0x94]
cmp dword [esp + 0x78], ecx
jne 0x87a8c0
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x87ab88
mov eax, dword [esp + 0xb8]
xor ebx, ebx
add eax, dword [esp + 0x54]
mov ebp, dword [esp + 0xbc]
movzx ecx, byte [esp + 0x54]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb4]
and ebp, 2
shl eax, cl
mov dword [esp + 0x48], eax
jmp 0x87aa0d
add ebx, 1
cmp ebx, dword [esp + 0x68]
je 0x87ab88
lea edi, [ebx*4]
lea ecx, [esi + edi]
movsx eax, word [ecx + 2]
test eax, eax
jns 0x87aa00
mov edx, eax
neg edx
cmp dword [esp + 0x54], edx
jge 0x87aa38
movzx eax, word [esp + 0x54]
mov edx, dword [esp + 0x54]
neg eax
mov word [ecx + 2], ax
test ebp, ebp
jne 0x87ac4a
mov eax, dword [esp + 0x48]
or eax, ebx
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
call fcn.0087a7b0
test eax, eax
js 0x87ac36
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
add esi, dword [edx + 4]
mov word [esi + edi], ax
jmp 0x87aa00
movzx ecx, byte [esp + 0x40]
mov eax, edx
shr eax, cl
jmp 0x87a97a
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], eax
jl 0x87abe1
mov ecx, dword [esp + 0x54]
mov edi, 1
sub ecx, eax
shl edi, cl
test edi, edi
mov dword [esp + 0x3c], ecx
jle 0x87a98f
movzx ecx, byte [esp + 0x3c]
mov eax, edx
shl eax, cl
mov ecx, dword [esp + 0x44]
and eax, ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
test ecx, ecx
jne 0x87ac62
lea eax, [esi + eax*4]
xor edx, edx
jmp 0x87ab5d
movzx ecx, word [esp + 0x40]
add edx, 1
mov word [eax], bx
mov word [eax + 2], cx
add eax, 4
cmp edx, edi
je 0x87a98f
cmp word [eax + 2], 0
je 0x87ab43
mov dword [esp + 8], 0xbaafc0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0090e610
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x6c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x74]
movzx edx, word [ecx]
jmp 0x87a901
mov ecx, dword [esp + 0x74]
movzx edx, byte [ecx]
jmp 0x87a901
movzx eax, word [ebp]
jmp 0x87a8df
movzx eax, byte [ebp]
jmp 0x87a8df
mov ecx, dword [esp + 0x70]
movzx ebx, word [ecx]
jmp 0x87a940
mov ecx, dword [esp + 0x70]
movzx ebx, byte [ecx]
jmp 0x87a940
mov ebx, dword [esp + 0x60]
sub eax, dword [esp + 0x54]
mov ecx, dword [esp + 0xb8]
test ebx, ebx
jne 0x87abf6
mov ecx, eax
shr edx, cl
and edx, dword [esp + 0x44]
lea ecx, [esi + edx*4]
movsx edx, word [ecx + 2]
neg edx
cmp eax, edx
jge 0x87ac0b
mov eax, edx
neg eax
mov word [ecx + 2], ax
jmp 0x87a98f
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [edx + 4]
mov dword [esp], eax
call fcn.005dc250
mov ecx, dword [esp + 0x58]
mov dword [ecx + 4], eax
mov eax, ecx
jmp 0x87a824
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x6c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [esp + 0xb8]
mov eax, ebx
shl eax, cl
or eax, dword [esp + 0xb4]
jmp 0x87aa46
movzx ecx, byte [esp + 0xb8]
mov dword [esp + 0x64], 0
shr edx, cl
mov eax, dword [esp + 0x64]
movzx ecx, byte [esp + 0x40]
shl eax, cl
add eax, edx
lea eax, [esi + eax*4]
cmp word [eax + 2], 0
jne 0x87ab64
movzx ecx, word [esp + 0x40]
add dword [esp + 0x64], 1
cmp dword [esp + 0x64], edi
mov word [eax], bx
mov word [eax + 2], cx
jne 0x87ac74
jmp 0x87a98f