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

Disassembly:
push 0xffffffffffffffff
push 0x4e7773
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x68]
mov eax, dword [ebx]
push ebp
push esi
push edi
mov esi, ecx
mov di, word [esi + 8]
xor di, 0x2a
sub di, word [eax]
neg di
sbb edi, edi
inc edi
mov dword [esp + 0x3c], edi
je 0x487ae0
add eax, 2
mov dword [ebx], eax
push ebx
mov ecx, esi
call fcn.0041dc2f
mov edx, dword [esp + 0x78]
and edx, 1
push ebx
mov ecx, esi
mov dword [esp + 0x7c], edx
call fcn.0041dc2f
mov eax, dword [ebx]
xor ebp, ebp
cmp eax, ebp
jne 0x487b1d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x10
and word [esi + 0x7e], 0x1ef
cmp edi, ebp
mov dword [esp + 0x34], ebp
jne 0x487b59
push 0x94
call fcn.004c86a5
add esp, 4
mov dword [esp + 0x4c], eax
cmp eax, ebp
mov dword [esp + 0x68], ebp
je 0x487b4f
push ebp
push esi
mov ecx, eax
call fcn.00430db1
jmp 0x487b51
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x34], eax
jne 0x487b5b
mov eax, esi
mov ecx, dword [esi + 0x2c]
mov dword [eax + 0x2c], ecx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], eax
call fcn.004412e0
cmp edi, ebp
mov ecx, 1
mov dword [esp + 0x68], ecx
je 0x487b80
mov dword [esp + 0x50], ebp
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x7c]
cmp eax, ebp
mov byte [esp + 0x68], 2
je 0x487bb8
cmp word [eax], bp
je 0x487bb8
push ecx
push ebp
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x23], 1
call fcn.00451c30
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dl, byte [esi + 0x7e]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x38]
push 2
mov byte [esp + 0x80], dl
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
call fcn.00445f00
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x487bf8
mov word [ebp], 0
test edi, edi
mov byte [esp + 0x68], 3
je 0x487c48
mov al, byte [esp + 0x13]
test al, al
je 0x487c3c
lea edi, [esi + 0x3c]
mov eax, ebp
mov ebp, dword [edi]
mov dword [edi], eax
mov dword [esi + 0x34], 0
mov edx, dword [edi]
push edx
mov eax, 0x22
mov dword [esp + 0x28], ebp
call fcn.00445f60
add esp, 4
test eax, eax
mov dword [edi], eax
je 0x487c39
mov word [eax + 0x20], 0
mov dword [esi + 0x38], edi
mov eax, dword [esp + 0x14]
mov word [eax + 0x7e], 0
jmp 0x487c4c
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x487c62
mov ecx, dword [esi + 0x38]
mov dword [eax + 0x38], ecx
mov edx, dword [esi + 0x34]
mov dword [eax + 0x34], edx
jmp 0x487c72
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push 0
push eax
call fcn.0045c8b0
mov al, byte [esi + 0xe]
test al, al
mov dword [esp + 0x38], 0
jns 0x487c8b
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], ecx
jmp 0x487c8f
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x78]
test eax, eax
je 0x487cad
mov edx, dword [ebx]
mov ecx, dword [esp + 0x14]
push edx
push 1
push ebx
call fcn.0042024d
mov edi, eax
jmp 0x4880d5
mov ebp, dword [ebx]
mov dword [esp + 0x78], ebp
mov ax, word [ebp]
cmp ax, word [esi + 0x48]
je 0x4880c7
mov ecx, dword [esp + 0x14]
cmp word [ecx + 0x7e], 0
je 0x487cd1
mov byte [esp + 0x12], 1
mov cx, word [esi + 0x56]
mov ax, word [ebp]
cmp cx, ax
jne 0x487d6d
lea edx, [esp + 0x78]
lea edi, [ebp + 2]
push edx
mov ecx, esi
mov dword [esp + 0x7c], edi
call fcn.0041dc2f
mov ebp, dword [esp + 0x78]
lea eax, [esi + 0x6a]
push eax
push ebp
mov dword [ebx], ebp
call fcn.00443910
add esp, 8
test eax, eax
je 0x4880c7
lea ecx, [esi + 0x5a]
push ecx
push ebp
call fcn.00443910
add esp, 8
test eax, eax
je 0x4880c7
mov al, byte [esp + 0x12]
test al, al
je 0x487d38
inc dword [esp + 0x18]
mov dword [ebx], ebp
jmp 0x4880b9
cmp word [ebp], 0
je 0x487d66
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x14]
push 0x4ebd38
push 0
lea edx, [esp + 0x80]
push edx
push eax
mov dword [esp + 0x88], edi
call fcn.00487aa0
mov ebp, dword [esp + 0x78]
mov dword [ebx], ebp
jmp 0x4880b9
cmp word [esi + 0x7a], ax
jne 0x487f07
mov cx, word [esi + 0x7c]
cmp cx, word [ebp + 2]
jne 0x487f07
lea edx, [esp + 0x78]
mov ebx, ebp
add ebp, 4
push edx
mov ecx, esi
mov dword [esp + 0x7c], ebp
call fcn.0041dc2f
mov edi, dword [esp + 0x78]
mov ax, word [edi]
test ax, ax
je 0x487dc7
cmp ax, 0xd
je 0x487dc7
cmp ax, 0xa
je 0x487dc7
cmp word [esi + 0x56], ax
je 0x487dc7
add edi, 2
mov dword [esp + 0x78], edi
mov ax, word [edi]
test ax, ax
jne 0x487da6
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x24], edi
call fcn.0041dc2f
mov ebp, dword [esp + 0x20]
mov ax, word [esi + 0x56]
cmp ax, word [ebp]
jne 0x487ec3
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
call fcn.004463d0
lea ecx, [esp + 0x78]
push ecx
add ebp, 2
mov ecx, esi
mov byte [esp + 0x6c], 4
mov dword [esp + 0x7c], ebp
call fcn.0041dc2f
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
lea eax, [esi + 0x6a]
push eax
push edi
mov dword [edx], edi
call fcn.00443910
add esp, 8
test eax, eax
je 0x487ea0
lea ecx, [esi + 0x5a]
push ecx
push edi
call fcn.00443910
add esp, 8
test eax, eax
je 0x487ea0
mov al, byte [esp + 0x12]
test al, al
je 0x487e52
inc dword [esp + 0x18]
jmp 0x487e7f
cmp word [edi], 0
je 0x487e7f
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x2c]
push edx
push 0
lea eax, [esp + 0x80]
push eax
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x88], ebp
call fcn.00487aa0
mov edi, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x20]
mov dword [edx], edi
mov byte [esp + 0x68], 3
call fcn.0043f290
mov ebp, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
jmp 0x4880b9
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [esp + 0x68], 3
je 0x487ec3
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x78]
mov di, word [edi]
cmp di, word [esi + 0x52]
je 0x487ede
cmp di, word [esi + 0x54]
je 0x487ede
cmp di, word [esi + 0x4a]
je 0x487ede
cmp di, word [esi + 0x50]
jne 0x487eea
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.0041dc5e
lea edx, [esp + 0x78]
push edx
mov ecx, esi
call fcn.0041dc2f
mov eax, dword [esp + 0x74]
mov ebp, dword [esp + 0x78]
mov dword [eax], ebp
mov ebx, eax
jmp 0x4880b9
cmp word [esi + 0x58], ax
jne 0x487f45
lea ecx, [esp + 0x78]
push ecx
add ebp, 2
mov ecx, esi
mov dword [esp + 0x7c], ebp
call fcn.0041dc2f
mov al, byte [esp + 0x12]
test al, al
mov edx, dword [esp + 0x78]
mov dword [ebx], edx
je 0x4880c7
mov eax, dword [esp + 0x18]
dec eax
test eax, eax
mov dword [esp + 0x18], eax
jle 0x4880c7
jmp 0x487f82
lea eax, [esi + 0x5a]
push eax
push ebp
call fcn.00443910
add esp, 8
test eax, eax
jne 0x487f6d
lea ecx, [esp + 0x78]
push ecx
mov ecx, esi
call fcn.00443db0
mov ebp, dword [esp + 0x78]
mov dword [ebx], eax
jmp 0x4880b9
lea edx, [esi + 0x6a]
push edx
push ebp
call fcn.00443910
add esp, 8
test eax, eax
je 0x4880c7
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.0041dc5e
mov al, byte [esp + 0x13]
test al, al
mov byte [esp + 0x2c], 0
je 0x487fdc
mov ecx, dword [esp + 0x78]
cmp ecx, dword [ebx]
jb 0x487fca
mov dx, word [esi + 0x52]
mov ax, word [ecx]
cmp ax, dx
je 0x487fc1
cmp ax, word [esi + 0x54]
je 0x487fc1
cmp ax, word [esi + 0x4a]
je 0x487fc1
cmp ax, word [esi + 0x50]
jne 0x487fca
mov eax, dword [ebx]
sub ecx, 2
cmp ecx, eax
jae 0x487fa7
mov dx, word [esi + 0x58]
cmp dx, word [ecx]
jne 0x487fdc
mov dword [esp + 0x78], ecx
mov byte [esp + 0x2c], 1
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
push eax
lea ecx, [esp + 0x7c]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
mov byte [esp + 0x78], 5
call fcn.0041fb8d
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ax, word [edi]
test ax, ax
je 0x48805a
cmp ax, 0x2f
je 0x48805a
cmp ax, 0x3b
je 0x48805a
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x80]
push edx
mov ecx, esi
call fcn.00453320
cmp word [eax], 0
je 0x48805a
mov cl, byte [esp + 0x12]
test cl, cl
jne 0x48805a
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x7c]
push edx
push 0
push eax
call fcn.00435957
test byte [esi + 0xf], 1
mov edi, dword [esp + 0x1c]
je 0x48807f
test edi, edi
je 0x48807f
mov ecx, dword [edi - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x78]
push eax
mov ecx, esi
call fcn.0041dc2f
test edi, edi
mov ebp, dword [esp + 0x78]
mov dword [ebx], ebp
mov byte [esp + 0x68], 3
je 0x4880b1
mov ecx, dword [0x51927c]
add edi, 0xfffffff8
push edi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x1c], 0
mov dx, word [ebp]
cmp dx, word [esi + 0x48]
jne 0x487cc1
push ebx
mov ecx, esi
call fcn.0041dc2f
mov ebp, dword [esp + 0x24]
xor edi, edi
movsx cx, byte [esp + 0x7c]
mov eax, dword [esp + 0x14]
or cx, word [eax + 0x7e]
and ecx, 0x1ef
mov word [esi + 0x7e], cx
mov cl, byte [eax + 0x80]
test cl, cl
je 0x488103
mov edx, dword [eax + 0x84]
mov dword [esi + 0x84], edx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x48813b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
test al, al
mov dword [esi + 0x20], ecx
je 0x48813b
mov edx, dword [esp + 0x48]
mov eax, ebp
mov ebp, dword [esi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ebp
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
mov esi, dword [esp + 0x34]
test esi, esi
je 0x488153
mov ecx, esi
call fcn.00415293
push esi
call fcn.004c86d5
add esp, 4
test ebp, ebp
je 0x48816a
mov ecx, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x488185
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 0xffffffff
call fcn.0045a790
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0x10