Function at 0x4071a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x180], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x184], eax
push 0x40
push 0
lea ecx, [ebp - 0x178]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
push 0x40
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x40721a
cmp dword [ebp - 0x190], 0x40
jae 0x407253
cmp dword [ebp - 0x180], 0
je 0x407248
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x1d4], eax
mov ecx, dword [ebp - 0x1d4]
push ecx
call fcn.00409312
add esp, 4
mov dword [ebp - 0x180], 0
mov eax, dword [ebp - 0x1d0]
jmp 0x407ab3
push 0xf8
push 0
lea edx, [ebp - 0x138]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x190]
push eax
push 0xf8
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x184]
add edx, dword [ebp - 0x13c]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x4072a2
cmp dword [ebp - 0x190], 0xf8
jae 0x4072a7
jmp 0x40721a
movzx ecx, word [ebp - 0x120]
cmp ecx, 0x10b
je 0x4072c2
push 9
call sub.KERNEL32.dll_SetLastError
jmp 0x40721a
mov edx, 8
imul eax, edx, 0xb
mov dword [ebp + eax - 0xc0], 0
mov ecx, 8
imul edx, ecx, 0xb
mov dword [ebp + edx - 0xbc], 0
movzx eax, word [ebp - 0x124]
mov ecx, dword [ebp - 0x13c]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 0x1a4], 0
jmp 0x40731a
mov eax, dword [ebp - 0x1a4]
add eax, 1
mov dword [ebp - 0x1a4], eax
movzx ecx, word [ebp - 0x132]
cmp dword [ebp - 0x1a4], ecx
jae 0x4073e1
push 0x28
push 0
lea edx, [ebp - 0x2c]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x190]
push eax
push 0x28
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x184]
add edx, dword [ebp - 0x1d8]
imul eax, dword [ebp - 0x1a4], 0x28
add edx, eax
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x407376
cmp dword [ebp - 0x190], 0x28
jae 0x40737b
jmp 0x40721a
mov edx, 8
imul eax, edx, 0xc
cmp dword [ebp + eax - 0xc0], 0
jne 0x4073dc
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp + ecx - 0xc0]
cmp edx, dword [ebp - 0x20]
jb 0x4073dc
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
cmp dword [ebp + eax - 0xc0], ecx
jae 0x4073dc
mov edx, 8
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ebp + eax - 0xc0], ecx
mov edx, 8
imul eax, edx, 0xc
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + eax - 0xbc], ecx
jmp 0x40730b
mov edx, 8
shl edx, 0
cmp dword [ebp + edx - 0xc0], 0
je 0x4074b8
mov eax, 8
shl eax, 0
cmp dword [ebp + eax - 0xbc], 0
jne 0x4074b8
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0x184]
add edx, dword [ebp + ecx - 0xc0]
mov dword [ebp - 0x1b0], edx
push 0
push 0x14
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x1b0]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x407449
jmp 0x40721a
mov eax, 8
shl eax, 0
mov ecx, dword [ebp + eax - 0xbc]
add ecx, 0x14
mov edx, 8
shl edx, 0
mov dword [ebp + edx - 0xbc], ecx
cmp dword [ebp - 0x34], 0
jne 0x407472
jmp 0x40748a
mov eax, dword [ebp - 0x1b0]
add eax, 0x14
mov dword [ebp - 0x1b0], eax
mov ecx, 1
test ecx, ecx
jne 0x407428
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x1c4], eax
push str._This_PE_file_has_an_import_table__but_the_import_table_size_is_marked_as_0._This_is_an_error.If_it_is_not_repaired__the_launched_program_will_not_work_properly__Detours_has_automatically_repaired_its_import_table_size_for_you_______r_n
call sub.KERNEL32.dll_OutputDebugStringA
call sub.KERNEL32.dll_GetLastError
cmp eax, dword [ebp - 0x1c4]
je 0x4074b8
mov edx, dword [ebp - 0x1c4]
push edx
call sub.KERNEL32.dll_SetLastError
mov eax, 8
shl eax, 0
mov eax, dword [ebp + eax - 0xbc]
xor edx, edx
mov ecx, 0x14
div ecx
mov dword [ebp - 0x1b4], eax
lea edx, [ebp - 0x1dc]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0x14
call fcn.00407170
add esp, 0xc
test eax, eax
je 0x4074f4
jmp 0x40721a
lea ecx, [ebp - 0x1c8]
push ecx
imul edx, dword [ebp - 0x1b4], 0x14
push edx
mov eax, dword [ebp - 0x1dc]
push eax
call fcn.004070f0
add esp, 0xc
test eax, eax
je 0x40751b
jmp 0x40721a
mov ecx, dword [ebp - 0x1c8]
push ecx
call fcn.00406940
add esp, 4
mov dword [ebp - 0x1ac], eax
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x1c8]
jae 0x407543
jmp 0x40721a
lea eax, [ebp - 0x1e0]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x10
call fcn.00407170
add esp, 0xc
test eax, eax
je 0x407561
jmp 0x40721a
lea edx, [ebp - 0x1e4]
push edx
mov eax, dword [ebp - 0x1e0]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
call fcn.004070f0
add esp, 0xc
test eax, eax
je 0x407587
jmp 0x40721a
mov edx, dword [ebp - 0x1e4]
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x17c], 0
jmp 0x4075ba
mov ecx, dword [ebp - 0x17c]
add ecx, 1
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0x17c]
cmp edx, dword [ebp + 0x14]
jae 0x407608
lea eax, [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x17c]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, 1
push eax
call fcn.00406930
add esp, 4
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.004070f0
add esp, 0xc
test eax, eax
je 0x407606
jmp 0x40721a
jmp 0x4075ab
mov edx, dword [ebp - 0x188]
push edx
call fcn.00409355
add esp, 4
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x407637
jmp 0x40721a
mov ecx, dword [ebp - 0x188]
push ecx
push 0
mov edx, dword [ebp - 0x180]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
add ecx, dword [ebp - 0x10c]
add ecx, dword [ebp - 0x11c]
add ecx, dword [ebp - 0x118]
add ecx, dword [ebp - 0x114]
mov dword [ebp - 0x1cc], ecx
mov edx, dword [ebp - 0x1a8]
cmp edx, dword [ebp - 0x1cc]
jae 0x407699
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x1a8]
push edx
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406690
add esp, 0x10
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jne 0x4076ce
jmp 0x40721a
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x194], 0
mov eax, dword [ebp - 0x1bc]
sub eax, dword [ebp - 0x184]
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x1c0], 0
mov ecx, 8
shl ecx, 0
cmp dword [ebp + ecx - 0xc0], 0
je 0x407763
lea edx, [ebp - 0x190]
push edx
imul eax, dword [ebp - 0x1b4], 0x14
push eax
imul ecx, dword [ebp + 0x14], 0x14
add ecx, dword [ebp - 0x198]
push ecx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x184]
add eax, dword [ebp + edx - 0xc0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x40775e
imul edx, dword [ebp - 0x1b4], 0x14
cmp dword [ebp - 0x190], edx
jae 0x407763
jmp 0x40721a
mov dword [ebp - 0x17c], 0
jmp 0x40777e
mov eax, dword [ebp - 0x17c]
add eax, 1
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
cmp ecx, dword [ebp + 0x14]
jae 0x407963
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0x188]
sub edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ebp - 0x180]
add eax, dword [ebp - 0x18c]
push eax
call fcn.00406c80
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jge 0x4077cd
jmp 0x40721a
push 0x40b3b4
mov ecx, dword [ebp - 0x188]
sub ecx, dword [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x180]
add edx, dword [ebp - 0x18c]
push edx
call fcn.00406b40
add esp, 0xc
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jge 0x407808
jmp 0x40721a
mov eax, dword [ebp - 0x17c]
shl eax, 2
mov ecx, dword [ebp - 0x1ac]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x19c], edx
mov eax, dword [ebp - 0x1a0]
add eax, dword [ebp - 0x19c]
imul ecx, dword [ebp - 0x17c], 0x14
mov edx, dword [ebp - 0x198]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x180]
add eax, dword [ebp - 0x19c]
mov dword [ebp - 0x194], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x194]
mov dword [eax + edx], 0x80000001
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x194]
mov dword [edx + ecx], 0
mov eax, dword [ebp - 0x17c]
shl eax, 2
mov ecx, dword [ebp - 0x1ac]
lea edx, [ecx + eax*4 + 8]
mov dword [ebp - 0x19c], edx
mov eax, dword [ebp - 0x1a0]
add eax, dword [ebp - 0x19c]
imul ecx, dword [ebp - 0x17c], 0x14
mov edx, dword [ebp - 0x198]
mov dword [edx + ecx + 0x10], eax
mov eax, dword [ebp - 0x180]
add eax, dword [ebp - 0x19c]
mov dword [ebp - 0x194], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x194]
mov dword [eax + edx], 0x80000001
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x194]
mov dword [edx + ecx], 0
imul eax, dword [ebp - 0x17c], 0x14
mov ecx, dword [ebp - 0x198]
mov dword [ecx + eax + 4], 0
imul edx, dword [ebp - 0x17c], 0x14
mov eax, dword [ebp - 0x198]
mov dword [eax + edx + 8], 0
mov ecx, dword [ebp - 0x1a0]
add ecx, dword [ebp - 0x18c]
imul edx, dword [ebp - 0x17c], 0x14
mov eax, dword [ebp - 0x198]
mov dword [eax + edx + 0xc], ecx
mov ecx, dword [ebp - 0x17c]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + ecx*4]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, 1
push eax
call fcn.00406930
add esp, 4
add eax, dword [ebp - 0x18c]
mov dword [ebp - 0x18c], eax
jmp 0x40776f
push 0
mov ecx, dword [ebp - 0x18c]
push ecx
mov edx, dword [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x1bc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
jne 0x40798c
jmp 0x40721a
mov edx, 8
imul eax, edx, 0xc
cmp dword [ebp + eax - 0xc0], 0
jne 0x4079c8
mov ecx, 8
imul edx, ecx, 0xc
mov eax, dword [ebp - 0x1a0]
mov dword [ebp + edx - 0xc0], eax
mov ecx, 8
imul edx, ecx, 0xc
mov eax, dword [ebp - 0x188]
mov dword [ebp + edx - 0xbc], eax
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 0x1a0]
mov dword [ebp + ecx - 0xc0], edx
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x188]
mov dword [ebp + eax - 0xbc], ecx
lea edx, [ebp - 0x1c0]
push edx
push 0x40
mov eax, dword [ebp - 0xe4]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004085e0
test eax, eax
jne 0x407a1b
jmp 0x40721a
mov dword [ebp - 0xe0], 0
push 0
push 0x40
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x184]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
jne 0x407a49
jmp 0x40721a
push 0
push 0xf8
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x184]
add ecx, dword [ebp - 0x13c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
jne 0x407a76
jmp 0x40721a
lea eax, [ebp - 0x1c0]
push eax
mov ecx, dword [ebp - 0x1c0]
push ecx
mov edx, dword [ebp - 0xe4]
push edx
mov eax, dword [ebp - 0x184]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
jne 0x407aa4
jmp 0x40721a
mov dword [ebp - 0x1d0], 1
jmp 0x40721a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409304
mov esp, ebp
pop ebp
ret