Function at 0x46ea80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [0x51c7d4], ecx
push ebx
mov bl, byte [ebp + 8]
setne cl
movzx eax, bl
cmp ecx, eax
je 0x46ee10
cmp dword [ebp + 0xc], 1
je 0x46ee10
cmp byte [0x51c800], 0
push esi
jne 0x46eb11
push edi
push 0x4f20b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x4f20d4
push edi
call esi
push 0x4f20e0
push edi
mov dword [0x51c7d8], eax
call esi
push 0x4f20f0
push edi
mov dword [0x51c7dc], eax
call esi
push 0x4f20fc
push edi
mov dword [0x51c7e0], eax
call esi
mov dword [0x51c7e4], eax
mov byte [0x51c800], 1
pop edi
cmp dword [0x51c7d8], 0
jne 0x46eb2f
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret
push 0x4f4
lea eax, [ebp - 0x614]
push 0
push eax
call fcn.004a7410
add esp, 0xc
mov dword [ebp - 0x618], 0x4f8
mov dword [ebp - 0x5ec], 0x20000
mov dword [ebp - 0x5d4], 1
call fcn.00467510
test al, al
mov dword [ebp - 0x5f0], 1
mov edx, 0x2000100
mov ecx, 0x100
cmovne ecx, edx
mov dword [ebp - 0x5d8], ecx
call fcn.00467510
test al, al
jne 0x46eb9e
movups xmm0, xmmword [0x4f177c]
movups xmmword [ebp - 0x600], xmm0
mov dword [ebp - 0x5a8], 0x78
mov dword [ebp - 0x5ac], 0x280
call fcn.00467510
test al, al
mov edx, 0x4f2050
mov ecx, 0x4f2034
lea eax, [ebp - 0x5a0]
cmove ecx, edx
push ecx
push 0x104
push eax
call fcn.004b7f10
push 0x4e1a9c
lea eax, [ebp - 0x398]
push 0x104
push eax
call fcn.004b7f10
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.004a7410
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 0x46ec84
or dword [ebp - 0x5d0], 0x10000
jmp 0x46ed01
movups xmm0, xmmword [0x4f2078]
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 [0x4f2088]
mov dword [ebp - 0x18c], 0x10009
mov dword [ebp - 0x188], 0x10000
movups xmmword [ebp - 0x154], xmm0
mov dword [ebp - 0x168], 0x30011
movups xmm0, xmmword [0x4f2098]
mov dword [ebp - 0x190], 0x2001b
movups xmmword [ebp - 0x144], xmm0
movups xmm0, xmmword [0x4f20a8]
movups xmmword [ebp - 0x134], xmm0
test bl, bl
je 0x46ed9e
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x5a0]
push eax
push 0x51c7f8
call dword [0x51c7d8]
mov esi, eax
test esi, esi
je 0x46ed6d
cmp esi, 0xb7
je 0x46ed6d
push esi
lea eax, [ebp - 0xcc]
push 0x4f2110
push eax
call fcn.0046de20
add esp, 0xc
lea eax, [ebp - 0xcc]
push 0x10
push 0x4e23b8
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.004a4433
mov esp, ebp
pop ebp
ret
xor esi, esi
lea eax, [ebp - 0x61c]
push eax
push esi
push esi
push 0x46de90
push esi
push esi
call fcn.004bbd27
add esp, 0x18
mov dword [0x51c7d4], eax
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret
push dword [0x51c7a4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 1
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x5a0]
push eax
push dword [0x51c7fc]
push dword [0x51c7f8]
call dword [0x51c7dc]
push 0xffffffffffffffff
push dword [0x51c7d4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x51c7d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x51c7a4]
mov dword [0x51c7d4], 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.004a4433
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.004a4433
mov esp, ebp
pop ebp
ret