Function at 0x407470
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41aeeb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2074
call fcn.00414b40
mov eax, dword [0x422084]
xor eax, esp
mov dword [esp + 0x2070], eax
push ebx
push esi
push edi
mov eax, dword [0x422084]
xor eax, esp
push eax
lea eax, [esp + 0x2088]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [esi]
cmp dword [eax], 0x80000003
mov ebx, ecx
je 0x40752a
mov eax, dword [ebx + 0x5878]
xor edi, edi
cmp eax, edi
je 0x4074d1
call eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], vtable.CSharingMemory_struct_BDExceptionContext_.0
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea eax, [ebx + 0x5858]
mov dword [esp + 0x2090], edi
cmp dword [eax + 0x14], 8
jb 0x4074fe
mov eax, dword [eax]
push eax
lea edi, [esp + 0x18]
call fcn.00408fe0
test eax, eax
jne 0x407531
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40751b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40752a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x407690
push 1
call fcn.004076c0
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0xb8]
call fcn.00407830
mov edi, dword [ebx + 4]
test edi, edi
je 0x40755d
mov ecx, dword [esi + 4]
call fcn.004077c0
test eax, eax
je 0x407667
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x10], esi
mov edx, dword [esi]
mov eax, dword [edx]
mov dword [ebx + 0x14], eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
mov dword [ebx + 0xc], edx
mov esi, dword [esi + 4]
lea edi, [ebx + 0x20]
mov ecx, 0xb3
push 0x5834
lea eax, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.004128f0
xor edi, edi
push 0x3c
lea edx, [esp + 0x4c]
push edi
push edx
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x50], edi
call fcn.004107d0
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [ebx + 0x5858]
mov esi, 8
add esp, 0x18
mov dword [esp + 0x24], edi
cmp dword [eax + 0x14], esi
jb 0x4075e3
mov eax, dword [eax]
add ebx, 0x583c
cmp dword [ebx + 0x14], esi
jb 0x4075f2
mov ecx, dword [ebx]
jmp 0x4075f4
mov ecx, ebx
push eax
push ecx
lea eax, [esp + 0x84]
push str.__s____smname_s
push eax
or edx, 0xffffffff
call fcn.00409230
add esp, 0x10
cmp dword [ebx + 0x14], esi
jb 0x407615
mov ebx, dword [ebx]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x9c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407663
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov dword [esp + 0x10], 1
jmp 0x407667
mov dword [esp + 0x10], edi
push 0
call fcn.004076c0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40767d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40768c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2088]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2070]
xor ecx, esp
call fcn.0040b177
mov esp, ebp
pop ebp
ret