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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1dc
call 0x48752f
pop eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1f0]
mov eax, dword [eax + 8]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4875e7
mov eax, dword [esp + 0x1f0]
mov edi, 4
mov ebp, dword [eax + 4]
lea eax, [esp + 0xd8]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], ebp
shl eax, 4
jmp 0x487588
add ebp, 0x10
add eax, 0xfffffff0
je 0x4875e7
mov ebx, dword [ebp]
lea esi, [ebx + 0x7fffffff]
cmp esi, 4
cmovae esi, edi
cmp esi, 3
jb 0x487580
cmp esi, 4
jne 0x4875a8
cmp word [ebp + 0xc], 0x28
jne 0x487580
cmp ebx, 0x80000004
jne 0x4875e7
cmp dword [ebp + 0xc], 8
jne 0x4875f7
mov esi, dword [edx + 8]
test esi, esi
js 0x487ea7
mov ebx, dword [edx + 4]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x14], edx
je 0x487649
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, esi
call fcn.0049d570
test eax, eax
jne 0x48764e
jmp 0x487ea7
mov word [ecx], 0x16
add esp, 0x1dc
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [esp + 0x1f8]
xor eax, eax
mov word [esp + 0x14c], 4
mov dword [esp + 0xd0], 0x80000001
mov esi, ecx
mov dword [esp + 0xd4], 0x100001
lea edx, [esp + 0xd0]
cmp byte [edi + 0x31], 2
mov ecx, edi
sete al
push eax
call fcn.00459840
add esp, 4
mov byte [edi + 0x251], 1
mov word [esi], 0x1409
jmp 0x4875ec
mov eax, 1
push esi
push ebx
push eax
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 0xc]
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x1f4]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
push ecx
mov dword [esp + 0xc], eax
call eax
add esp, 4
mov edi, edx
push esi
mov dword [esp + 0x10], ebx
push ebx
mov dword [esp + 0xc], eax
push eax
call dword [edx + 0x18]
add esp, 0xc
cmp byte [esp + 0x40], 0
je 0x4876c9
mov ecx, dword [esp]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov ebx, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x2c], esi
jmp 0x487720
mov ecx, dword [esp]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test esi, esi
mov ebx, edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 4]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], 0x80000000
je 0x487720
push eax
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
mov edx, dword [eax + 0xc]
mov dword [esp + 4], esi
push ecx
call edx
add esp, 4
mov esi, edx
lea edi, [esp + 0x150]
mov dword [esp + 0x38], eax
mov dword [esp], eax
mov dword [esp + 0x3c], edx
push dword [esp + 4]
push edi
call dword [ebx + 0x14]
add esp, 8
mov ebx, dword [esp + 0x190]
cmp ebx, 0x41
jae 0x487ea7
test ebx, ebx
mov dword [esp + 4], esi
je 0x487778
movzx eax, byte [0x90320d]
xor ecx, ecx
mov edx, ebx
call fcn.0049d570
mov esi, eax
test eax, eax
jne 0x48777d
jmp 0x487ea7
mov esi, 1
push ebx
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 0x13c], 0x13
mov dword [esp + 0xd0], 0x80000014
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], esi
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 1
mov dword [esp + 0xdc], ebx
mov dword [esp + 0x68], 0
sub esp, 4
lea ecx, [esp + 0xd4]
lea edx, [esp + 0x64]
push 0x80000000
call fcn.00458250
add esp, 8
mov esi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
push edi
push ebx
push dword [esp + 8]
mov eax, dword [esp + 0x10]
call dword [eax + 0x18]
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, eax
neg ecx
jo 0x487836
mov dword [esp + 4], esi
mov esi, dword [esp + 0x2c]
sub eax, esi
cmp eax, edi
jb 0x487e8b
mov eax, dword [esp + 0x28]
add eax, esi
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add esi, edi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 4]
test esi, esi
je 0x487849
push ebx
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
lea ecx, [esp + 0xd0]
call fcn.00458990
mov esi, dword [esp + 0x1c]
cmp esi, 0xfffffff
ja 0x487ea7
mov ebx, esi
shl ebx, 4
cmp ebx, 0x7ffffffd
jae 0x487ea7
mov eax, dword [esp + 0x1f0]
xor ecx, ecx
mov edx, ebx
xor edi, edi
movsd xmm0, qword [eax + 0xc]
movups xmmword [esp + 0x1cc], xmm0
movzx eax, byte [0x90320d]
call fcn.0049d570
test eax, eax
mov dword [esp + 0x18], eax
je 0x487ea7
mov eax, esi
mov dword [esp + 0x40], ebx
jmp 0x487907
cmp ebx, edi
je 0x487a72
mov edx, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov ebx, 4
mov eax, dword [edx + edi]
lea ecx, [eax + 0x7fffffff]
cmp ecx, 4
cmovae ecx, ebx
mov ecx, dword [ecx*4 + 0x487eac]
add ecx, dword [esp + 0x20]
jmp ecx
mov ecx, dword [esp + 0x1f0]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0
movsd xmm1, qword [ecx + 0x24]
mov eax, dword [ecx + 0x34]
movsd xmm0, qword [ecx + 0x2c]
movsd xmm2, qword [ecx + 0x14]
movsd qword [esp + 0x88], xmm1
movsd xmm1, qword [ecx + 0x1c]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movsd qword [esp + 0x90], xmm0
movsd qword [esp + 0x78], xmm2
movsd qword [esp + 0x80], xmm1
movups xmm1, xmmword [esp + 0x1cc]
mov byte [esp + 0xcc], 6
mov dword [esp + 0x60], 0x80000003
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
movlps qword [esp + 0x70], xmm1
sub esp, 4
lea esi, [esp + 0x64]
lea edx, [esp + 0x50]
mov ecx, esi
push 0x80000001
call fcn.00458250
add esp, 8
mov eax, dword [esp + 0x54]
movsd xmm0, qword [esp + 0x4c]
lea ebx, [esp + 0xd0]
lea edi, [esp + 0x15c]
mov ecx, 0x1c
mov edx, ebx
mov dword [esp + 0x158], eax
movsd qword [esp + 0x150], xmm0
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x14c], 5
lea esi, [esp + 0x150]
mov ecx, 0x1f
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
call fcn.0046e1d0
mov esi, dword [esp + 0xd0]
mov eax, 1
lea ecx, [esi + 0x7fffffff]
cmp ecx, 5
cmovb eax, ecx
cmp eax, 3
ja 0x487e71
mov ecx, dword [esp + 0x20]
add ecx, dword [eax*4 + 0x487ec0]
mov eax, dword [esp + 0x14]
jmp ecx
mov eax, dword [esp + 0x48]
push dword [eax]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1f4]
add eax, 0x6c
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x3c]
push dword [esp + 0x38]
push ebx
mov ebx, eax
call dword [ecx + 0xc]
sub esp, 0xc
mov dword [esp + 0xc], ebx
mov dword [esp], edi
mov dword [esp + 0x10], 0x20
mov dword [esp + 4], 0
call dword [esi + 0x10]
add esp, 0x14
mov ecx, dword [esp + 0x110]
cmp ecx, 0x41
jae 0x487ea7
mov esi, eax
mov eax, dword [edx + 0xc]
mov edi, edx
lea edx, [esp + 0x4c]
lea ebx, [esp + 0xd0]
mov word [esp + 0x4c], 0x800
mov byte [esp + 0x12], 0x21
mov byte [esp + 0x13], cl
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x150], edx
lea edx, [esp + 0x12]
mov dword [esp + 0x154], 2
mov dword [esp + 0x158], edx
lea edx, [esp + 0x13]
mov dword [esp + 0x15c], 1
mov dword [esp + 0x160], 0x8c3d20
mov dword [esp + 0x164], 6
mov dword [esp + 0x168], 0x8c3c4a
mov dword [esp + 0x16c], 0x1b
mov dword [esp + 0x170], edx
mov dword [esp + 0x174], 1
mov dword [esp + 0x178], ebx
mov dword [esp + 0x17c], ecx
push 8
lea ecx, [esp + 0x64]
push ecx
push 6
lea ecx, [esp + 0x15c]
push ecx
push esi
call eax
add esp, 0x14
test al, al
jne 0x487ea7
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov eax, ecx
mov dword [esp + 4], ecx
shr eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, ebx
shr eax, 0x10
mov dword [esp + 8], eax
mov eax, ecx
shr eax, 0x18
mov dword [esp + 0x20], eax
mov eax, ebx
shr eax, 0x18
mov dword [esp], eax
mov eax, dword [edi]
test eax, eax
je 0x487d2e
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x487d4c
cmp dword [edi + 8], 9
jb 0x487d3d
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp byte [esi], bl
sete cl
call fcn.0045df90
mov edx, ebx
xor ecx, ecx
mov ebx, eax
cmp byte [esi + 1], dh
sete cl
call fcn.0045df90
mov bh, al
mov eax, dword [esp + 8]
xor ecx, ecx
and bh, bl
cmp byte [esi + 2], al
sete cl
call fcn.0045df90
mov bl, al
mov eax, dword [esp]
xor ecx, ecx
cmp byte [esi + 3], al
sete cl
call fcn.0045df90
and al, bl
xor ecx, ecx
and al, bh
mov ebx, dword [esp + 4]
mov byte [esp], al
cmp byte [esi + 4], bl
sete cl
call fcn.0045df90
xor ecx, ecx
cmp byte [esi + 5], bh
mov byte [esp + 8], al
sete cl
call fcn.0045df90
mov bh, al
mov eax, dword [esp + 0x1c]
xor ecx, ecx
and bh, byte [esp + 8]
cmp byte [esi + 6], al
sete cl
call fcn.0045df90
mov bl, al
mov eax, dword [esp + 0x20]
xor ecx, ecx
and bl, bh
and bl, byte [esp]
cmp byte [esi + 7], al
sete cl
call fcn.0045df90
and al, bl
and al, 1
movzx ecx, al
call fcn.0045df90
test al, al
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
setne byte [eax + 1]
mov byte [eax], 0x16
mov eax, dword [edi]
test eax, eax
je 0x487e18
push esi
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x487e36
cmp dword [edi + 8], 9
jb 0x487e27
mov esi, dword [esi - 4]
push esi
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esp + 0x24], 0x7fffffff
je 0x4875ec
push dword [esp + 0x28]
push 0
push dword [0x903200]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x4875ec
test dword [esp + 0xd4], 0x7fffffff
mov eax, dword [esp + 0x14]
je 0x487bdc
jmp 0x487bc4
lea ecx, [esp + 0x24]
mov edx, esi
push 1
push 1
push edi
call fcn.004f0af0
add esp, 0xc
mov esi, dword [esp + 0x2c]
jmp 0x48781b
ud2