Function at 0x46c660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573591
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5eaea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa4], edx
mov eax, ecx
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x14]
xor edi, edi
push ecx
mov dword [ebp - 0x68], edi
push eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [0x5f21d0], edi
je 0x46c6c2
mov dword [ebp - 0x64], 0x800
cmp dword [ebp - 0x14], edi
je 0x46c6c9
mov dword [ebp - 0x64], 1
xorps xmm0, xmm0
mov dword [ebp - 0x38], edi
xor eax, eax
movlpd qword [ebp - 0x34], xmm0
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x30]
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x9c], eax
movq qword [ebp - 0x40], xmm0
movups xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0x60], esi
movq qword [ebp - 0xb0], xmm0
push 0x1c
lea eax, [ebp - 0x50]
push eax
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x46caa7
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
cdq
add eax, dword [ebp - 0x44]
adc edx, 0
cmp edx, dword [ebp - 0x64]
ja 0x46caa7
jb 0x46c73a
test eax, eax
jne 0x46caa7
cmp dword [ebp - 0x38], 0x40000
jne 0x46ca7f
cmp dword [ebp - 0xbc], ecx
je 0x46ca67
xor eax, eax
mov dword [ebp - 0x1c], 0
push eax
push 0x104
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00461a00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push 0
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_K32GetMappedFileNameW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004550c0
lea ecx, [ebp - 0x2c]
call fcn.0046bf80
cmp dword [ebp - 0x1c], 0
je 0x46c8ed
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x70], 0
cmovae edx, dword [ebp - 0x2c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c7e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x80]
call fcn.0044a8b0
mov esi, dword [ebp - 0xa4]
or edi, 1
mov ecx, esi
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c830
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x98]
call fcn.0044a8b0
mov edx, dword [ebp - 0x88]
or edi, 2
mov dword [ebp - 0x58], edi
cmp edx, dword [ebp - 0x70]
ja 0x46c8ed
cmp dword [ebp - 0x6c], 8
lea ecx, [ebp - 0x80]
push edx
cmovae ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x84], 8
push ecx
cmovae eax, dword [ebp - 0x98]
push eax
call fcn.00552c92
add esp, 0xc
test eax, eax
jne 0x46c8ed
mov eax, dword [ebp - 0x88]
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x70]
je 0x46c8e7
mov esi, dword [ebp - 0x88]
lea eax, [ebp - 0x98]
cmp edi, 8
cmovae eax, edx
add esi, esi
mov dword [ebp - 0x68], esi
cmp word [eax + esi - 2], 0x5c
mov esi, dword [ebp - 0x6c]
je 0x46c8e7
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x80]
cmp esi, 8
cmovae eax, ecx
cmp word [eax + edi], 0x5c
mov edi, dword [ebp - 0x84]
jne 0x46c8ff
mov byte [ebp - 0x51], 1
jmp 0x46c903
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x80]
mov edi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x98]
mov byte [ebp - 0x51], 0
mov eax, dword [ebp - 0x58]
test al, 2
je 0x46c96a
and eax, 0xfffffffd
mov dword [ebp - 0x58], eax
cmp edi, 8
jb 0x46c94d
lea ecx, [edi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46c93a
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cac8
push ecx
push edx
call fcn.0052edf8
mov esi, dword [ebp - 0x6c]
add esp, 8
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], dx
mov dword [ebp - 4], 0
test al, 1
je 0x46c9c3
and eax, 0xfffffffe
mov dword [ebp - 0x58], eax
cmp esi, 8
jb 0x46c9af
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x46c9a5
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cac8
push esi
push ecx
call fcn.0052edf8
add esp, 8
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
cmp byte [ebp - 0x51], 0
je 0x46ca24
push 0
push 0
push dword [ebp - 0x50]
push 0x5dce64
push dword [0x5f21bc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
push 0
push 0
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
je 0x46ca1a
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa0], 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x46ca61
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ca57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cac8
push edx
push ecx
call fcn.0052edf8
add esp, 8
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x58]
movups xmm0, xmmword [ebp - 0x50]
movups xmmword [ebp - 0xc0], xmm0
movq xmm0, qword [ebp - 0x40]
movq qword [ebp - 0xb0], xmm0
add esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x9c]
adc eax, 0
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x9c], eax
cmp eax, dword [ebp - 0x64]
ja 0x46caa7
jb 0x46c703
test esi, esi
jb 0x46c703
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052ebb7
mov esp, ebp
pop ebp
ret
call fcn.0054a8a1
int3