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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x74], 0x4920a0
mov ebx, dword [ebp + 8]
movaps xmm0, xmmword [0x50aec0]
mov edx, dword [ebp + 0xc]
lea edi, [esi + 0x20]
lea ecx, [esi + 8]
mov eax, dword fs:[0]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x3c], 0
mov word [esi + 0x40], 0
mov dword [esi + 0x20], 0
movups xmmword [esi + 0x28], xmm0
mov dword [esi + 0x38], 0
mov byte [esi + 0x3c], 1
push edi
push eax
call fcn.00485370
add esp, 8
cmp byte [esi + 8], 4
jne 0x478845
mov edx, dword [esi + 0xc]
jmp 0x478853
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
cmp al, 4
jne 0x47890e
lea ebx, [esi + 0x20]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x10], edx
mov ecx, ebx
call fcn.004855a0
mov eax, dword [esi + 0x20]
xor eax, 2
or eax, dword [esi + 0x24]
jne 0x4788d5
movzx eax, byte [esi + 0x28]
mov ecx, dword [esi + 0x2c]
cmp al, 4
je 0x4788d8
cmp al, 3
jne 0x4788c3
mov eax, dword [ecx]
mov dword [esi + 4], ecx
mov ecx, dword [ecx + 4]
mov dword [esi + 0x78], 1
mov dword [esi + 0x14], eax
push eax
mov dword [esi + 0x18], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 4]
test eax, eax
je 0x4788b1
push dword [ecx + 8]
push eax
push dword [esi + 0x14]
call fcn.00414130
add esp, 0xc
push 4
push 0xc
push dword [esi + 4]
call fcn.00414130
add esp, 0xc
lea ebx, [esi + 0x20]
mov eax, 1
xor ecx, ecx
xor edi, edi
mov dword [esi + 0x78], 2
jmp 0x47893a
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x47892e
setns al
js 0x4789cc
movzx edi, al
movzx eax, byte [0x519171]
push edi
mov dword [esi + 4], ecx
push ecx
call fcn.00414120
add esp, 8
test eax, eax
je 0x4789da
mov ecx, dword [esi + 4]
mov edi, 1
jmp 0x47893a
mov ecx, eax
mov byte [ebx + 4], al
shr eax, 0x18
shr ecx, 8
mov byte [ebx + 7], al
mov word [ebx + 5], cx
mov dword [ebx + 8], edx
mov dword [ebx], 0
jmp 0x4789b9
mov edi, 1
xor ecx, ecx
mov eax, 1
mov dword [esi + 0x20], eax
mov eax, ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], 0
mov dword [esi + 0x78], 2
lea ecx, [esi + 8]
lea edx, [esi + 0x1c]
push eax
push edi
push ebx
call fcn.0047af10
add esp, 0xc
movzx eax, byte [esi + 8]
mov ebx, dword [ebp + 8]
cmp al, 4
jne 0x47897d
mov eax, dword [esi + 0x28]
movsd xmm0, qword [esi + 0x20]
mov dword [ebx + 8], eax
movsd qword [ebx], xmm0
jmp 0x4789b0
movzx ecx, byte [esi + 0xb]
movzx edi, word [esi + 9]
mov edx, dword [esi + 0xc]
mov byte [ebx + 7], cl
mov word [ebx + 5], di
mov byte [ebx + 4], al
mov eax, dword [esi + 0x24]
mov dword [ebx + 8], edx
mov dword [ebx], 0
test eax, eax
je 0x4789b0
push 1
push eax
push dword [esi + 0x20]
call fcn.00414130
add esp, 0xc
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x78], 0
call fcn.004994d0
jmp 0x4789ed
mov dword [esi + 0x78], 0
push dword [esi + 4]
push edi
call fcn.004b45c0
add esp, 8
ud2