Function at 0x403620
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x420014]
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 fcn.00406b10
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 0x40369a
cmp dword [ebp - 0x190], 0x40
jae 0x4036d3
cmp dword [ebp - 0x180], 0
je 0x4036c8
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x1d4], eax
mov ecx, dword [ebp - 0x1d4]
push ecx
call fcn.0040574f
add esp, 4
mov dword [ebp - 0x180], 0
mov eax, dword [ebp - 0x1d0]
jmp 0x403f33
push 0xf8
push 0
lea edx, [ebp - 0x138]
push edx
call fcn.00406b10
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 0x403722
cmp dword [ebp - 0x190], 0xf8
jae 0x403727
jmp 0x40369a
movzx ecx, word [ebp - 0x120]
cmp ecx, 0x10b
je 0x403742
push 9
call sub.KERNEL32.dll_SetLastError
jmp 0x40369a
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 0x40379a
mov eax, dword [ebp - 0x1a4]
add eax, 1
mov dword [ebp - 0x1a4], eax
movzx ecx, word [ebp - 0x132]
cmp dword [ebp - 0x1a4], ecx
jae 0x403861
push 0x28
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.00406b10
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 0x4037f6
cmp dword [ebp - 0x190], 0x28
jae 0x4037fb
jmp 0x40369a
mov edx, 8
imul eax, edx, 0xc
cmp dword [ebp + eax - 0xc0], 0
jne 0x40385c
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp + ecx - 0xc0]
cmp edx, dword [ebp - 0x20]
jb 0x40385c
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
cmp dword [ebp + eax - 0xc0], ecx
jae 0x40385c
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 0x40378b
mov edx, 8
shl edx, 0
cmp dword [ebp + edx - 0xc0], 0
je 0x403938
mov eax, 8
shl eax, 0
cmp dword [ebp + eax - 0xbc], 0
jne 0x403938
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 0x4038c9
jmp 0x40369a
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 0x4038f2
jmp 0x40390a
mov eax, dword [ebp - 0x1b0]
add eax, 0x14
mov dword [ebp - 0x1b0], eax
mov ecx, 1
test ecx, ecx
jne 0x4038a8
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 0x403938
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.004035f0
add esp, 0xc
test eax, eax
je 0x403974
jmp 0x40369a
lea ecx, [ebp - 0x1c8]
push ecx
imul edx, dword [ebp - 0x1b4], 0x14
push edx
mov eax, dword [ebp - 0x1dc]
push eax
call fcn.00403570
add esp, 0xc
test eax, eax
je 0x40399b
jmp 0x40369a
mov ecx, dword [ebp - 0x1c8]
push ecx
call fcn.004031d0
add esp, 4
mov dword [ebp - 0x1ac], eax
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x1c8]
jae 0x4039c3
jmp 0x40369a
lea eax, [ebp - 0x1e0]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x10
call fcn.004035f0
add esp, 0xc
test eax, eax
je 0x4039e1
jmp 0x40369a
lea edx, [ebp - 0x1e4]
push edx
mov eax, dword [ebp - 0x1e0]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
call fcn.00403570
add esp, 0xc
test eax, eax
je 0x403a07
jmp 0x40369a
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 0x403a3a
mov ecx, dword [ebp - 0x17c]
add ecx, 1
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0x17c]
cmp edx, dword [ebp + 0x14]
jae 0x403a88
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 fcn.0040a5c0
add esp, 4
add eax, 1
push eax
call fcn.004031c0
add esp, 4
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.00403570
add esp, 0xc
test eax, eax
je 0x403a86
jmp 0x40369a
jmp 0x403a2b
mov edx, dword [ebp - 0x188]
push edx
call fcn.00405746
add esp, 4
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x403ab7
jmp 0x40369a
mov ecx, dword [ebp - 0x188]
push ecx
push 0
mov edx, dword [ebp - 0x180]
push edx
call fcn.00406b10
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 0x403b19
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.00402f20
add esp, 0x10
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jne 0x403b4e
jmp 0x40369a
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 0x403be3
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 0x403bde
imul edx, dword [ebp - 0x1b4], 0x14
cmp dword [ebp - 0x190], edx
jae 0x403be3
jmp 0x40369a
mov dword [ebp - 0x17c], 0
jmp 0x403bfe
mov eax, dword [ebp - 0x17c]
add eax, 1
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
cmp ecx, dword [ebp + 0x14]
jae 0x403de3
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.00402690
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jge 0x403c4d
jmp 0x40369a
push 0x418874
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.004033d0
add esp, 0xc
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jge 0x403c88
jmp 0x40369a
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 fcn.0040a5c0
add esp, 4
add eax, 1
push eax
call fcn.004031c0
add esp, 4
add eax, dword [ebp - 0x18c]
mov dword [ebp - 0x18c], eax
jmp 0x403bef
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 0x403e0c
jmp 0x40369a
mov edx, 8
imul eax, edx, 0xc
cmp dword [ebp + eax - 0xc0], 0
jne 0x403e48
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.004049b0
test eax, eax
jne 0x403e9b
jmp 0x40369a
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 0x403ec9
jmp 0x40369a
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 0x403ef6
jmp 0x40369a
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 0x403f24
jmp 0x40369a
mov dword [ebp - 0x1d0], 1
jmp 0x40369a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405951
mov esp, ebp
pop ebp
ret