Function at 0x46c040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x513b94]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [0x51877c], ecx
push ebx
mov bl, byte [ebp + 8]
setne cl
movzx eax, bl
cmp ecx, eax
je 0x46c3d0
cmp dword [ebp + 0xc], 1
je 0x46c3d0
cmp byte [0x5187a8], 0
push esi
jne 0x46c0d1
push edi
push 0x4ee0d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x4ee0ec
push edi
call esi
push 0x4ee0f8
push edi
mov dword [0x518780], eax
call esi
push 0x4ee108
push edi
mov dword [0x518784], eax
call esi
push 0x4ee114
push edi
mov dword [0x518788], eax
call esi
mov dword [0x51878c], eax
mov byte [0x5187a8], 1
pop edi
cmp dword [0x518780], 0
jne 0x46c0ef
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret
push 0x4f4
lea eax, [ebp - 0x614]
push 0
push eax
call fcn.004a3e00
add esp, 0xc
mov dword [ebp - 0x618], 0x4f8
mov dword [ebp - 0x5ec], 0x20000
mov dword [ebp - 0x5d4], 1
call fcn.00464b40
test al, al
mov dword [ebp - 0x5f0], 1
mov edx, 0x2000100
mov ecx, 0x100
cmovne ecx, edx
mov dword [ebp - 0x5d8], ecx
call fcn.00464b40
test al, al
jne 0x46c15e
movups xmm0, xmmword [0x4ed794]
movups xmmword [ebp - 0x600], xmm0
mov dword [ebp - 0x5a8], 0x78
mov dword [ebp - 0x5ac], 0x280
call fcn.00464b40
test al, al
mov edx, 0x4ee068
mov ecx, 0x4ee04c
lea eax, [ebp - 0x5a0]
cmove ecx, edx
push ecx
push 0x104
push eax
call fcn.004b4900
push 0x4dd79c
lea eax, [ebp - 0x398]
push 0x104
push eax
call fcn.004b4900
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
call fcn.004a3e00
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0x24
xor eax, eax
mov word [ebp - 0xa], ax
mov dword [ebp - 8], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 6
xor ecx, ecx
mov dword [ebp - 0x118], 0
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x46c244
or dword [ebp - 0x5d0], 0x10000
jmp 0x46c2c1
movups xmm0, xmmword [0x4ee090]
mov dword [ebp - 0x5d0], accept
mov eax, 0x488
mov byte [ebp - 0x5ce], 0xff
movups xmmword [ebp - 0x164], xmm0
mov word [ebp - 0x5d0], ax
movups xmm0, xmmword [0x4ee0a0]
mov dword [ebp - 0x18c], 0x10009
mov dword [ebp - 0x188], 0x10000
movups xmmword [ebp - 0x154], xmm0
mov dword [ebp - 0x168], 0x30011
movups xmm0, xmmword [0x4ee0b0]
mov dword [ebp - 0x190], 0x2001b
movups xmmword [ebp - 0x144], xmm0
movups xmm0, xmmword [0x4ee0c0]
movups xmmword [ebp - 0x134], xmm0
test bl, bl
je 0x46c35e
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x5a0]
push eax
push 0x5187a0
call dword [0x518780]
mov esi, eax
test esi, esi
je 0x46c32d
cmp esi, 0xb7
je 0x46c32d
push esi
lea eax, [ebp - 0xcc]
push 0x4ee128
push eax
call fcn.0046b3e0
add esp, 0xc
lea eax, [ebp - 0xcc]
push 0x10
push 0x4de0b8
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret
xor esi, esi
lea eax, [ebp - 0x61c]
push eax
push esi
push esi
push 0x46b450
push esi
push esi
call fcn.004b8717
add esp, 0x18
mov dword [0x51877c], eax
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret
push dword [0x51874c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 1
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x5a0]
push eax
push dword [0x5187a4]
push dword [0x5187a0]
call dword [0x518784]
push 0xffffffffffffffff
push dword [0x51877c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x51877c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x51874c]
mov dword [0x51877c], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0e13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.004a0e13
mov esp, ebp
pop ebp
ret