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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x930
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
je 0x486bb6
mov eax, esi
mov ecx, edx
shl eax, 4
test eax, eax
je 0x486bc4
add eax, 0xfffffff0
cmp dword [ecx + 8], 0
lea ecx, [ecx + 0x10]
jne 0x486ba6
mov dword [ebx], 0x80000007
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp esi, 1
mov dword [esp + 8], edx
jne 0x486be7
cmp dword [edx + 8], 1
jne 0x486cb4
mov eax, dword [edx + 4]
mov al, byte [eax]
mov dword [ebx], 0x80000000
mov byte [ebx + 4], al
jmp 0x486bbc
cmp esi, 2
jne 0x486bfd
push 0xffffffffffffffe0
pop eax
test eax, eax
je 0x486c19
cmp dword [edx + eax + 0x28], 1
lea eax, [eax + 0x10]
je 0x486bef
xor eax, eax
cmp esi, 3
jne 0x486c15
push 0xffffffffffffffd0
pop ecx
test ecx, ecx
je 0x486c48
cmp dword [edx + ecx + 0x38], 1
lea ecx, [ecx + 0x10]
je 0x486c07
xor ecx, ecx
jmp 0x486c88
cmp dword [edx + 8], 0
je 0x4873c9
cmp dword [edx + 0x18], 0
je 0x4873d7
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x14]
mov al, byte [eax]
mov cl, byte [ecx]
mov dword [ebx], 0x80000001
mov byte [ebx + 4], al
mov byte [ebx + 5], cl
jmp 0x486bbc
cmp dword [edx + 8], 0
je 0x4873e5
cmp dword [edx + 0x18], 0
je 0x4873f3
cmp dword [edx + 0x28], 0
je 0x487401
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x24]
movzx eax, byte [eax]
movzx ecx, byte [ecx]
movzx edx, byte [edx]
shl ecx, 0x10
shl eax, 8
shl edx, 0x18
or eax, ecx
or eax, edx
xor ecx, ecx
inc ecx
mov edx, eax
and edx, 1
or edx, ecx
je 0x486cab
mov ecx, eax
shr eax, 0x18
mov dword [ebx], 0x80000002
shr ecx, 8
mov byte [ebx + 6], al
mov word [ebx + 4], cx
jmp 0x486bbc
mov edx, dword [esp + 8]
cmp esi, 1
jne 0x486d07
mov esi, edx
mov edx, dword [edx + 4]
lea ecx, [esp + 0x68]
push dword [esi + 8]
call fcn.0049284e
pop eax
lea edi, [esp + 0x1f8]
lea edx, [esp + 0x68]
mov ecx, edi
call fcn.00492bc6
cmp dword [edi + 0x38], 2
je 0x486d14
lea edi, [esp + 0x6c]
push 0x12
pop ecx
lea esi, [esp + 0x1f8]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], 0x80000003
add ebx, 4
push 0x13
pop ecx
lea esi, [esp + 0x68]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x486bbc
mov esi, edx
mov dword [esp + 0x230], 2
lea ecx, [esp + 0x1f8]
call fcn.00492813
mov eax, dword [ebp + 8]
mov edx, dword [esi + 8]
mov dword [esp + 0x14], ebx
cmp eax, 1
jne 0x486d33
mov eax, edx
jmp 0x486d52
mov ecx, esi
lea esi, [eax - 1]
mov eax, edx
and esi, 0xfffffff
lea edi, [ecx + 0x18]
mov edx, dword [edi]
mov ecx, eax
call fcn.00457e62
add edi, 0x10
dec esi
jne 0x486d43
lea esi, [esp + 0x50c]
lea edx, [esp + 0x670]
mov dword [esp + 4], eax
mov ecx, esi
mov byte [edx + 4], 2
mov dword [edx], 0x2020100
call fcn.0041b170
mov ebx, dword [ebp + 8]
xor edi, edi
shl ebx, 4
cmp ebx, edi
je 0x486dc7
cmp byte [esp + 0x535], 0
jne 0x486dc2
cmp dword [esp + 0x514], 0x80
jae 0x486db3
mov ecx, dword [esp + 8]
mov eax, dword [ecx + edi + 8]
test eax, eax
je 0x486db3
mov edx, dword [ecx + edi + 4]
mov ecx, esi
push eax
call fcn.0041cd43
pop eax
jmp 0x486dc2
mov ecx, esi
mov byte [esp + 0x535], 1
call fcn.0041cd1f
add edi, 0x10
jmp 0x486d7d
lea esi, [esp + 0x3a0]
lea edx, [esp + 0x50c]
mov ecx, esi
call fcn.0041c924
mov edx, dword [esi]
cmp edx, 0x80000000
jne 0x486e02
lea ecx, [esp + 0x50c]
mov dword [esp + 0x68], 0x80000000
call fcn.004591b7
mov edi, dword [ebp + 8]
jmp 0x486f03
lea esi, [esp + 0x3a4]
lea eax, [esp + 0x3c]
push 0xb
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x50c]
mov dword [eax - 4], edx
mov ecx, esi
call fcn.004591b7
xor eax, eax
lea edx, [esp + 0x28]
inc eax
mov dword [edx + 4], eax
push 3
pop eax
lea edi, [esp + 0x3a0]
mov dword [edx], eax
mov word [edx + 8], 0x102
mov ecx, edi
push dword [ebp + 8]
push dword [esp + 0xc]
call fcn.00459275
pop eax
pop ecx
cmp dword [edi], 0
je 0x486e99
movsd xmm0, qword [esp + 0x3b8]
movsd xmm1, qword [esp + 0x3a8]
movsd xmm2, qword [esp + 0x3b0]
movsd qword [esp + 0x248], xmm1
movsd qword [esp + 0x250], xmm2
movsd qword [esp + 0x258], xmm0
mov dword [esp + 0x240], 1
jmp 0x486eed
mov edi, 0x164
push edi
lea eax, [esp + 0x3a8]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
push esi
lea edi, [esp + 0x678]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [esp + 0x30]
movzx eax, byte [esp + 0x31]
lea esi, [esp + 0x240]
mov ecx, esi
push edi
push eax
call fcn.00413054
pop eax
pop ecx
push edi
call fcn.00458952
pop eax
cmp dword [esi], 0
je 0x48720a
mov edi, dword [ebp + 8]
lea eax, [esp + 0x38]
mov dword [esp + 0x68], 0x80000000
push eax
call fcn.00492544
pop eax
lea esi, [esp + 0x68]
mov ecx, esi
call fcn.00492826
push 0x100
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [esp + 8]
push 3
pop esi
test ebx, ebx
je 0x486f42
cmp dword [eax + 8], 1
jne 0x486f68
mov ecx, dword [eax + 4]
add eax, 0x10
add ebx, 0xfffffff0
movzx ecx, byte [ecx]
mov byte [esp + ecx + 0x68], 1
jmp 0x486f25
lea eax, [esp + 0x69]
mov bl, byte [eax - 1]
push 0xff
push eax
lea eax, [esp + 0x3a8]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp bl, 2
jne 0x48715d
xor ebx, ebx
cmp edi, 0x1f5
lea edx, [esp + 0x7f0]
adc bl, 1
xor eax, eax
mov dword [edx], esi
inc eax
mov dword [edx + 4], eax
mov dword [edx - 0x1c], 2
mov dword [edx - 0x14], eax
mov dword [edx - 0x18], esi
mov byte [edx - 0x10], 1
mov dword [edx - 0xc], esi
lea esi, [esp + 0x68]
mov dword [edx - 8], eax
mov byte [edx + 8], bl
mov word [edx - 4], 0x100
mov byte [edx + 9], 0
mov ecx, esi
push edi
push dword [esp + 0xc]
call fcn.00459275
pop eax
pop ecx
cmp dword [esi], 0
je 0x486fef
movzx eax, word [esp + 0x86]
movsd xmm0, qword [esp + 0x7e]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov bl, byte [esp + 0x7d]
mov word [esp + 0x20], ax
mov al, byte [esp + 0x7c]
movsd qword [esp + 0x18], xmm0
jmp 0x4871f7
lea ecx, [esp + 0x88]
mov dword [esp + 8], ebx
lea esi, [esp + 0x3bc]
mov eax, dword [ecx - 0x1c]
movsd xmm0, qword [ecx - 0xa]
movzx ebx, word [ecx - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ecx - 0x18]
movsd qword [esp + 0x240], xmm0
mov dword [esp + 0xc], eax
mov eax, dword [ecx - 0x14]
mov dword [esp + 0x10], eax
movzx eax, word [ecx - 2]
mov word [esp + 0x248], ax
mov eax, dword [ecx - 0x10]
mov dword [esp + 0x34], eax
push 0x148
push ecx
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
cmp edi, 0x1f5
mov edi, dword [esp + 0x10]
movzx ecx, word [esp + 0x248]
movsd xmm0, qword [esp + 0x240]
mov dword [esi - 0x1c], eax
mov dword [esi - 0x18], edx
mov edx, dword [esp + 0x34]
mov dword [esi - 0x14], edi
mov dword [esi - 0x10], edx
mov word [esi - 0xc], bx
mov word [esi - 2], cx
movsd qword [esi - 0xa], xmm0
lea esi, [esp + 0x68]
jae 0x487188
lea eax, [esp + 0x3a0]
mov ecx, esi
xor edx, edx
push eax
push 1
call fcn.00413054
pop eax
pop ecx
cmp dword [esi], 0
jne 0x4871ac
mov eax, dword [esp + 0x6c]
movsd xmm0, qword [esp + 0x7e]
movzx edi, word [esp + 0x7c]
mov ebx, dword [esp + 0x74]
lea esi, [esp + 0x528]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
movsd qword [esp + 0x240], xmm0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x86]
mov word [esp + 0x248], ax
push 0x140
lea eax, [esp + 0x8c]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 4]
movsd xmm0, qword [esp + 0x240]
lea ecx, [esp + 0x50c]
mov dword [esi - 0x1c], eax
mov eax, dword [esp + 0xc]
mov dword [esi - 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [esi - 0x14], ebx
mov dword [esi - 0x10], eax
movzx eax, word [esp + 0x248]
mov word [esi - 0xc], di
movsd qword [esi - 0xa], xmm0
mov word [esi - 2], ax
call fcn.0045899b
mov esi, eax
mov edi, 0x50a840
jmp 0x487356
mov esi, dword [esp + 0x14]
mov byte [esi + 4], bl
lea eax, [esi + 5]
push 0xff
lea ecx, [esp + 0x3a4]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esi], 0x80000005
jmp 0x486bbc
push 2
pop edx
lea eax, [esp + 0x3a0]
mov ecx, esi
push eax
push 1
call fcn.004127b3
pop eax
pop ecx
mov esi, dword [esi]
cmp esi, 0x80000000
jne 0x48729a
mov eax, dword [esp + 0x74]
movsd xmm0, qword [esp + 0x7e]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x78]
mov bl, byte [esp + 0x7d]
mov dword [esp + 4], eax
movzx eax, word [esp + 0x86]
movsd qword [esp + 0x18], xmm0
mov word [esp + 0x20], ax
mov al, byte [esp + 0x7c]
mov dword [esp + 8], eax
lea eax, [esp + 0x3a0]
push eax
call fcn.00458952
pop eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
cmp esi, 3
je 0x487371
mov byte [esp + 0x41], 3
jmp 0x487390
lea eax, [esp + 0x248]
lea esi, [esp + 0x7d4]
mov edi, dword [eax - 4]
push 0x158
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov dword [esp + 0xc], edi
cmp edi, 0x80000000
mov edi, dword [ebp + 8]
je 0x486ef0
lea eax, [esp + 0x9c]
push 0x158
push esi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push 0xc
pop ecx
lea eax, [esp + 0x68]
mov edx, edi
lea esi, [esp + 0x38]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, edx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov dword [eax + 0x30], ecx
mov dword [eax + 0x18c], edx
cmp dword [eax], 0x80000000
je 0x486f03
push 0x190
push eax
push dword [esp + 0x1c]
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x486bbc
mov eax, dword [esp + 0x70]
movsd xmm0, qword [esp + 0x7e]
movzx edi, word [esp + 0x7c]
mov ebx, dword [esp + 0x6c]
lea ecx, [esp + 0x240]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
movsd qword [esp + 0x28], xmm0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x86]
mov word [esp + 0x30], ax
mov eax, 0x128
push eax
lea eax, [esp + 0x8c]
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [esp + 4]
lea eax, [esp + 0x690]
movsd xmm0, qword [esp + 0x28]
mov dword [eax - 0x20], esi
mov dword [eax - 0x1c], ebx
mov dword [eax - 0x18], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax - 0x14], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax - 0x10], ecx
movzx ecx, word [esp + 0x30]
mov word [eax - 0xc], di
movsd qword [eax - 0xa], xmm0
mov word [eax - 2], cx
mov ecx, 0x128
push ecx
lea ecx, [esp + 0x244]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x670]
call fcn.0045891c
mov esi, eax
mov edi, 0x50a7bc
mov bl, byte [esp + 0x7f9]
lea eax, [esp + 0x3a0]
push eax
call fcn.00458952
pop eax
mov eax, dword [esp + 8]
mov ecx, esi
mov dword [esp + 0x38], ecx
movzx ecx, word [esp + 0x18]
cmp bl, 3
mov dword [esp + 0x3c], edi
mov byte [esp + 0x40], al
mov word [esp + 0x42], cx
mov byte [esp + 0x41], bl
jne 0x4873a8
lea ecx, [esp + 0x38]
call fcn.0049283b
mov eax, dword [esp + 0x14]
mov dword [eax], 0x80000007
jmp 0x486bbc
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
movsd xmm0, qword [esp + 0x38]
mov dword [ecx + 0xc], eax
movsd qword [ecx + 4], xmm0
mov dword [ecx], 0x80000006
jmp 0x486bbc
xor ecx, ecx
xor edx, edx
push 0x50e43c
call fcn.00442900
xor ecx, ecx
xor edx, edx
push 0x50e44c
call fcn.00442900
xor ecx, ecx
xor edx, edx
push 0x50e46c
call fcn.00442900
xor ecx, ecx
xor edx, edx
push 0x50e47c
call fcn.00442900
xor ecx, ecx
xor edx, edx
push 0x50e48c
call fcn.00442900