Function at 0x46e8d3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [section..data]
mov ebx, section..data
cmp eax, ebx
je 0x46e91b
test dword [eax + 0x1c], 0x800
je 0x46e91b
cmp byte [eax + 0x19], 5
jb 0x46e91b
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x40fe88
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x34
pop ecx
call fcn.004238e7
lea esi, [edi + 0x1c]
push esi
call fcn.0043e980
xor eax, eax
push eax
push eax
push edi
push 0x46ed70
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xdc], eax
test eax, eax
jne 0x46e99f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 4], eax
call fcn.0043e9b0
mov eax, dword [section..data]
cmp eax, ebx
je 0x46e986
test byte [eax + 0x1c], 1
je 0x46e986
cmp byte [eax + 0x19], 2
jb 0x46e986
mov esi, dword [ebp - 4]
call fcn.0042386b
push esi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x35
mov edx, 0x40fe88
pop ecx
call fcn.00421fda
mov esi, dword [ebp - 4]
test esi, esi
jle 0x46eb2f
movzx esi, si
or esi, 0x80070000
jmp 0x46eb2f
mov eax, dword [section..data]
mov esi, 0x800
cmp eax, ebx
je 0x46e9d6
test dword [eax + 0x1c], esi
je 0x46e9d6
cmp byte [eax + 0x19], 5
jb 0x46e9d6
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x40fe88
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x36
pop ecx
call fcn.004238e7
mov eax, dword [edi + 0xdc]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc0]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 4], eax
sub eax, 0
je 0x46ea8a
sub eax, 1
je 0x46ea4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], esi
mov eax, dword [section..data]
cmp eax, ebx
je 0x46e989
test byte [eax + 0x1c], 1
je 0x46e989
cmp byte [eax + 0x19], 2
jb 0x46e989
call fcn.0042386b
push esi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x3a
jmp 0x46e97b
mov eax, dword [section..data]
cmp eax, ebx
je 0x46ea80
test dword [eax + 0x1c], esi
je 0x46ea80
cmp byte [eax + 0x19], 4
jb 0x46ea80
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x40fe88
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x39
pop ecx
call fcn.004238e7
mov esi, 0x83450014
jmp 0x46eb2f
lea eax, [ebp - 4]
push eax
push dword [edi + 0xdc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x46eae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], esi
mov eax, dword [section..data]
cmp eax, ebx
je 0x46e989
test byte [eax + 0x1c], 1
je 0x46e989
cmp byte [eax + 0x19], 2
jb 0x46e989
call fcn.0042386b
push esi
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x37
jmp 0x46e97b
mov eax, dword [section..data]
cmp eax, ebx
je 0x46eb19
test dword [eax + 0x1c], esi
je 0x46eb19
cmp byte [eax + 0x19], 4
jb 0x46eb19
mov esi, dword [ebp - 4]
call fcn.0042386b
push esi
push eax
mov eax, dword [section..data]
mov edx, 0x40fe88
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x38
pop ecx
call fcn.00421fda
push dword [edi + 0xdc]
mov esi, dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0xdc], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret