Function at 0x401de0
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1cbc
call fcn.00405960
mov eax, dword [0x420014]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x1c05], 0
mov byte [ebp - 0x1c0d], 0
mov dword [ebp - 0x1c1c], 0
mov dword [ebp - 0x1c24], 0
jmp 0x401e2a
mov eax, dword [ebp - 0x1c24]
add eax, 1
mov dword [ebp - 0x1c24], eax
cmp dword [ebp - 0x1c24], 0x100
jae 0x401e5a
mov ecx, dword [ebp - 0x1c24]
mov dword [ebp + ecx*4 - 0x1c04], 0
mov edx, dword [ebp - 0x1c24]
mov dword [ebp + edx*4 - 0x1804], 0
jmp 0x401e1b
mov dword [ebp - 0x1c0c], 1
jmp 0x401e75
mov eax, dword [ebp - 0x1c0c]
add eax, 1
mov dword [ebp - 0x1c0c], eax
mov ecx, dword [ebp - 0x1c0c]
cmp ecx, dword [ebp + 8]
jge 0x402015
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x1c0c]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + ecx*4]
movsx edx, byte [ecx + eax]
cmp edx, 0x2d
je 0x401ec2
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c0c]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + edx*4]
movsx eax, byte [edx + ecx]
cmp eax, 0x2f
jne 0x402015
mov ecx, dword [ebp - 0x1c0c]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
add eax, 1
mov dword [ebp - 0x1c34], eax
mov ecx, dword [ebp - 0x1c34]
mov dword [ebp - 0x1c14], ecx
mov edx, dword [ebp - 0x1c14]
movsx eax, byte [edx]
test eax, eax
je 0x401f1d
mov ecx, dword [ebp - 0x1c14]
movsx edx, byte [ecx]
cmp edx, 0x3a
je 0x401f1d
mov eax, dword [ebp - 0x1c14]
movsx ecx, byte [eax]
cmp ecx, 0x3d
je 0x401f1d
mov edx, dword [ebp - 0x1c14]
add edx, 1
mov dword [ebp - 0x1c14], edx
jmp 0x401ee3
mov eax, dword [ebp - 0x1c14]
movsx ecx, byte [eax]
cmp ecx, 0x3a
je 0x401f39
mov edx, dword [ebp - 0x1c14]
movsx eax, byte [edx]
cmp eax, 0x3d
jne 0x401f51
mov ecx, dword [ebp - 0x1c14]
mov byte [ecx], 0
mov edx, dword [ebp - 0x1c14]
add edx, 1
mov dword [ebp - 0x1c14], edx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c34]
movsx eax, byte [edx + ecx]
mov dword [ebp - 0x1c28], eax
mov ecx, dword [ebp - 0x1c28]
sub ecx, 0x3f
mov dword [ebp - 0x1c28], ecx
cmp dword [ebp - 0x1c28], 0x37
ja case.0x401f8e.1
mov edx, dword [ebp - 0x1c28]
movzx eax, byte [edx + 0x4025fc]
jmp dword [eax*4 + 0x4025ec]
cmp dword [ebp - 0x1c1c], 0x100
jae 0x401fc5
mov ecx, dword [ebp - 0x1c1c]
mov edx, dword [ebp - 0x1c14]
mov dword [ebp + ecx*4 - 0x1c04], edx
mov eax, dword [ebp - 0x1c1c]
add eax, 1
mov dword [ebp - 0x1c1c], eax
jmp 0x401fdb
push str.withdll.exe:_Too_many_DLLs._n
call fcn.00402840
add esp, 4
mov byte [ebp - 0x1c05], 1
jmp 0x402010
jmp 0x402010
mov byte [ebp - 0x1c0d], 1
jmp 0x402010
mov byte [ebp - 0x1c05], 1
jmp 0x402010
mov byte [ebp - 0x1c05], 1
mov ecx, dword [ebp - 0x1c0c]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
push str.withdll.exe:_Bad_argument:__s_n
call fcn.00402840
add esp, 8
jmp 0x401e66
mov ecx, dword [ebp - 0x1c0c]
cmp ecx, dword [ebp + 8]
jl 0x402027
mov byte [ebp - 0x1c05], 1
cmp dword [ebp - 0x1c1c], 0
jne 0x402037
mov byte [ebp - 0x1c05], 1
movzx edx, byte [ebp - 0x1c05]
test edx, edx
je 0x402051
call fcn.00401230
mov eax, 0x2329
jmp 0x4025de
mov dword [ebp - 0x1c18], 0
jmp 0x40206c
mov eax, dword [ebp - 0x1c18]
add eax, 1
mov dword [ebp - 0x1c18], eax
mov ecx, dword [ebp - 0x1c18]
cmp ecx, dword [ebp - 0x1c1c]
jae 0x40220a
mov dword [ebp - 0x1c50], 0
lea edx, [ebp - 0x1c50]
push edx
lea eax, [ebp - 0x1004]
push eax
push 0x400
mov ecx, dword [ebp - 0x1c18]
mov edx, dword [ebp + ecx*4 - 0x1c04]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4020d8
mov eax, dword [ebp - 0x1c18]
mov ecx, dword [ebp + eax*4 - 0x1c04]
push ecx
push str.withdll.exe:_Error:__s_is_not_a_valid_path_name.._n
call fcn.00402840
add esp, 8
mov eax, 0x232a
jmp 0x4025de
lea edx, [ebp - 0x1004]
push edx
call fcn.0040a5c0
add esp, 4
add eax, 1
mov dword [ebp - 0x1c38], eax
mov eax, dword [ebp - 0x1c38]
push eax
call fcn.00405746
add esp, 4
mov dword [ebp - 0x1c54], eax
mov ecx, dword [ebp - 0x1c54]
mov dword [ebp - 0x1c3c], ecx
lea edx, [ebp - 0x1004]
push edx
mov eax, dword [ebp - 0x1c38]
push eax
mov ecx, dword [ebp - 0x1c3c]
push ecx
call fcn.00402690
mov edx, dword [ebp - 0x1c18]
mov eax, dword [ebp - 0x1c3c]
mov dword [ebp + edx*4 - 0x1804], eax
push 1
push 0
mov ecx, dword [ebp - 0x1c18]
mov edx, dword [ebp + ecx*4 - 0x1804]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x1c30], eax
cmp dword [ebp - 0x1c30], 0
jne 0x402191
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x1c18]
mov ecx, dword [ebp + eax*4 - 0x1804]
push ecx
push str.withdll.exe:_Error:__s_failed_to_load__error__ld_._n
call fcn.00402840
add esp, 0xc
mov eax, 0x232b
jmp 0x4025de
mov dword [ebp - 0x1c68], 0
mov dword [ebp - 0x1c64], 0
push 0x401250
lea edx, [ebp - 0x1c68]
push edx
mov eax, dword [ebp - 0x1c30]
push eax
call fcn.004028a0
mov ecx, dword [ebp - 0x1c30]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x1c68], 0
jne 0x402205
mov edx, dword [ebp - 0x1c18]
mov eax, dword [ebp + edx*4 - 0x1804]
push eax
push str.withdll.exe:_Error:__s_does_not_export_ordinal_1._n
call fcn.00402840
add esp, 8
push str._____________See_help_entry_DetourCreateProcessWithDllEx_in_Detours.chm._n
call fcn.00402840
add esp, 4
mov eax, 0x232c
jmp 0x4025de
jmp 0x40205d
mov cx, word [0x41853c]
mov word [ebp - 0x404], cx
push 0x3fe
push 0
lea edx, [ebp - 0x402]
push edx
call fcn.00406b10
add esp, 0xc
mov dword [ebp - 0x1c58], 0
push 0x44
push 0
lea eax, [ebp - 0x1cbc]
push eax
call fcn.00406b10
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x1c78]
push ecx
call fcn.00406b10
add esp, 0xc
mov dword [ebp - 0x1cbc], 0x44
mov edx, 1
imul eax, edx, 0
mov dword [ebp - 0x1c40], eax
cmp dword [ebp - 0x1c40], 0x800
jae 0x402284
jmp 0x402289
call fcn.00405876
mov ecx, dword [ebp - 0x1c40]
mov byte [ebp + ecx - 0xc04], 0
mov edx, dword [ebp - 0x1c0c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
push 0x400
lea edx, [ebp - 0x1404]
push edx
call fcn.00402690
jmp 0x4022c6
mov eax, dword [ebp - 0x1c0c]
add eax, 1
mov dword [ebp - 0x1c0c], eax
mov ecx, dword [ebp - 0x1c0c]
cmp ecx, dword [ebp + 8]
jge 0x40239e
push 0x20
mov edx, dword [ebp - 0x1c0c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00402750
add esp, 8
test eax, eax
jne 0x40230b
push 9
mov edx, dword [ebp - 0x1c0c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00402750
add esp, 8
test eax, eax
je 0x402357
push 0x41858c
push 0x800
lea edx, [ebp - 0xc04]
push edx
call fcn.00402640
mov eax, dword [ebp - 0x1c0c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
push 0x800
lea eax, [ebp - 0xc04]
push eax
call fcn.00402640
push 0x418590
push 0x800
lea ecx, [ebp - 0xc04]
push ecx
call fcn.00402640
jmp 0x402375
mov edx, dword [ebp - 0x1c0c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
push 0x800
lea edx, [ebp - 0xc04]
push edx
call fcn.00402640
mov eax, dword [ebp - 0x1c0c]
add eax, 1
cmp eax, dword [ebp + 8]
jge 0x402399
push 0x418594
push 0x800
lea ecx, [ebp - 0xc04]
push ecx
call fcn.00402640
jmp 0x4022b7
lea edx, [ebp - 0xc04]
push edx
push 0x418598
call fcn.00402840
add esp, 8
mov dword [ebp - 0x1c2c], 0
jmp 0x4023cd
mov eax, dword [ebp - 0x1c2c]
add eax, 1
mov dword [ebp - 0x1c2c], eax
mov ecx, dword [ebp - 0x1c2c]
cmp ecx, dword [ebp - 0x1c1c]
jae 0x4023f8
mov edx, dword [ebp - 0x1c2c]
mov eax, dword [ebp + edx*4 - 0x1804]
push eax
push str.withdll.exe:___with___s_n
call fcn.00402840
add esp, 8
jmp 0x4023be
push 1
call fcn.00407e4c
add esp, 4
push eax
call fcn.004081c3
add esp, 4
mov dword [ebp - 0x1c5c], 0x4000004
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x1c58]
push ecx
lea edx, [ebp - 0x404]
push edx
push 0x400
push str..exe
lea eax, [ebp - 0x1404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
mov ecx, 1
imul edx, ecx, 0
movsx eax, byte [ebp + edx - 0x404]
test eax, eax
je 0x402466
lea ecx, [ebp - 0x404]
mov dword [ebp - 0x1c44], ecx
jmp 0x402470
mov dword [ebp - 0x1c44], 0
push 0
lea edx, [ebp - 0x1804]
push edx
mov eax, dword [ebp - 0x1c1c]
push eax
lea ecx, [ebp - 0x1c78]
push ecx
lea edx, [ebp - 0x1cbc]
push edx
push 0
push 0
mov eax, dword [ebp - 0x1c5c]
push eax
push 1
push 0
push 0
lea ecx, [ebp - 0xc04]
push ecx
mov edx, dword [ebp - 0x1c44]
push edx
call fcn.004042d0
test eax, eax
jne 0x4024f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c48], eax
mov eax, dword [ebp - 0x1c48]
push eax
push str.withdll.exe:_DetourCreateProcessWithDllEx_failed:__ld_n
call fcn.00402840
add esp, 8
cmp dword [ebp - 0x1c48], 6
jne 0x4024ec
push str.withdll.exe:_Cant_detour_a_64_bit_target_process_from_a_32_bit_parent_process._n
call fcn.00402840
add esp, 4
push 0x2331
call dword [sym.imp.KERNEL32.dll_ExitProcess]
movzx ecx, byte [ebp - 0x1c0d]
test ecx, ecx
je 0x402511
mov edx, dword [ebp - 0x1c78]
push edx
call fcn.004018d0
add esp, 4
mov eax, dword [ebp - 0x1c74]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1c78]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1c4c], 0
lea edx, [ebp - 0x1c4c]
push edx
mov eax, dword [ebp - 0x1c78]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40256a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.withdll.exe:_GetExitCodeProcess_failed:__ld_n
call fcn.00402840
add esp, 8
mov eax, 0x2332
jmp 0x4025de
mov dword [ebp - 0x1c20], 0
jmp 0x402585
mov ecx, dword [ebp - 0x1c20]
add ecx, 1
mov dword [ebp - 0x1c20], ecx
mov edx, dword [ebp - 0x1c20]
cmp edx, dword [ebp - 0x1c1c]
jae 0x4025d8
mov eax, dword [ebp - 0x1c20]
cmp dword [ebp + eax*4 - 0x1804], 0
je 0x4025d6
mov ecx, dword [ebp - 0x1c20]
mov edx, dword [ebp + ecx*4 - 0x1804]
mov dword [ebp - 0x1c60], edx
mov eax, dword [ebp - 0x1c60]
push eax
call fcn.0040574f
add esp, 4
mov ecx, dword [ebp - 0x1c20]
mov dword [ebp + ecx*4 - 0x1804], 0
jmp 0x402576
mov eax, dword [ebp - 0x1c4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405951
mov esp, ebp
pop ebp
ret