Function at 0x403d21
Capabilities:
Create thread

Disassembly:
mov eax, 0x1340
call fcn.00412240
mov eax, dword [0x42ea58]
xor eax, esp
mov dword [esp + 0x133c], eax
mov eax, dword [esp + 0x1348]
push ebx
push ebp
push esi
mov esi, ecx
cmp byte [esi + 4], 0
push edi
mov dword [esp + 0x1c], eax
je 0x403e3c
mov eax, dword [esi + 8]
test eax, eax
je 0x403da2
cmp dword [esi + 0xc], 0
je 0x403da2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleFileNameExA
push eax
call edi
mov ecx, dword [esi + 8]
push 0x425ebc
push ecx
mov ebp, eax
call edi
test ebp, ebp
mov edi, eax
je 0x403da2
test edi, edi
je 0x403da2
mov edx, dword [esp + 0x1354]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x403da2
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x2c]
push ecx
push ebx
call edi
shr dword [esp + 0x10], 2
test eax, eax
jne 0x403dbf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x134c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410afa
add esp, 0x1340
ret 8
xor edi, edi
cmp dword [esp + 0x10], edi
jbe 0x403e2b
jmp 0x403dd0
mov eax, dword [esp + edi*4 + 0x24]
push 0x104
lea edx, [esp + 0x124c]
push edx
push eax
push ebx
call ebp
test eax, eax
je 0x403d9b
lea ecx, [esp + 0x1248]
push 0x5c
push ecx
call fcn.004116ac
add esp, 8
test eax, eax
je 0x403e02
add eax, 1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
mov edx, dword [edx + 8]
push ecx
mov ecx, dword [esp + edi*4 + 0x28]
push eax
lea eax, [esp + 0x1250]
push eax
push ecx
mov ecx, esi
call edx
test eax, eax
je 0x403e2b
add edi, 1
cmp edi, dword [esp + 0x10]
jb 0x403dd0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x403da4
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.Module32First
push edi
call ebx
push str.Module32Next
push edi
mov ebp, eax
call ebx
test ebp, ebp
mov dword [esp + 0x10], eax
je 0x403da2
test eax, eax
je 0x403da2
mov eax, dword [esp + 0x1354]
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0x403ca0
push 0
push 0
mov dword [esp + 0x103c], 0x224
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
call edi
cmp ebx, 0x102
jne 0x403ee0
mov eax, dword [esp + 0x14]
push eax
call edi
mov eax, 1
jmp 0x403da4
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1024]
push ecx
push edx
call ebp
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi]
push ebx
lea ecx, [esp + 0x1048]
push ecx
mov ecx, dword [esp + 0x1048]
lea edx, [esp + 0x114c]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, esi
call edx
test eax, eax
je 0x403ecf
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x1024]
push ecx
push edx
call ebp
test eax, eax
je 0x403f69
mov eax, dword [esi]
push ebx
lea ecx, [esp + 0x1048]
push ecx
mov ecx, dword [esp + 0x1048]
lea edx, [esp + 0x114c]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, esi
call edx
test eax, eax
je 0x403f69
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1024]
push eax
push ecx
call ebp
test eax, eax
jne 0x403f30
mov edx, dword [esp + 0x14]
push edx
call edi
mov eax, 1
jmp 0x403da4