Function at 0x10004600
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x1001a040]
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.10007990
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 0x1000467a
cmp dword [ebp - 0x190], 0x40
jae 0x100046b3
cmp dword [ebp - 0x180], 0
je 0x100046a8
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x1d4], eax
mov ecx, dword [ebp - 0x1d4]
push ecx
call fcn.100069ae
add esp, 4
mov dword [ebp - 0x180], 0
mov eax, dword [ebp - 0x1d0]
jmp 0x10004f13
push 0xf8
push 0
lea edx, [ebp - 0x138]
push edx
call fcn.10007990
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 0x10004702
cmp dword [ebp - 0x190], 0xf8
jae 0x10004707
jmp 0x1000467a
movzx ecx, word [ebp - 0x120]
cmp ecx, 0x10b
je 0x10004722
push 9
call sub.KERNEL32.dll_SetLastError
jmp 0x1000467a
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 0x1000477a
mov eax, dword [ebp - 0x1a4]
add eax, 1
mov dword [ebp - 0x1a4], eax
movzx ecx, word [ebp - 0x132]
cmp dword [ebp - 0x1a4], ecx
jae 0x10004841
push 0x28
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.10007990
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 0x100047d6
cmp dword [ebp - 0x190], 0x28
jae 0x100047db
jmp 0x1000467a
mov edx, 8
imul eax, edx, 0xc
cmp dword [ebp + eax - 0xc0], 0
jne 0x1000483c
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp + ecx - 0xc0]
cmp edx, dword [ebp - 0x20]
jb 0x1000483c
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
cmp dword [ebp + eax - 0xc0], ecx
jae 0x1000483c
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 0x1000476b
mov edx, 8
shl edx, 0
cmp dword [ebp + edx - 0xc0], 0
je 0x10004918
mov eax, 8
shl eax, 0
cmp dword [ebp + eax - 0xbc], 0
jne 0x10004918
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 0x100048a9
jmp 0x1000467a
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 0x100048d2
jmp 0x100048ea
mov eax, dword [ebp - 0x1b0]
add eax, 0x14
mov dword [ebp - 0x1b0], eax
mov ecx, 1
test ecx, ecx
jne 0x10004888
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 0x10004918
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.100045d0
add esp, 0xc
test eax, eax
je 0x10004954
jmp 0x1000467a
lea ecx, [ebp - 0x1c8]
push ecx
imul edx, dword [ebp - 0x1b4], 0x14
push edx
mov eax, dword [ebp - 0x1dc]
push eax
call fcn.10004550
add esp, 0xc
test eax, eax
je 0x1000497b
jmp 0x1000467a
mov ecx, dword [ebp - 0x1c8]
push ecx
call fcn.100041b0
add esp, 4
mov dword [ebp - 0x1ac], eax
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x1c8]
jae 0x100049a3
jmp 0x1000467a
lea eax, [ebp - 0x1e0]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x10
call fcn.100045d0
add esp, 0xc
test eax, eax
je 0x100049c1
jmp 0x1000467a
lea edx, [ebp - 0x1e4]
push edx
mov eax, dword [ebp - 0x1e0]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
call fcn.10004550
add esp, 0xc
test eax, eax
je 0x100049e7
jmp 0x1000467a
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 0x10004a1a
mov ecx, dword [ebp - 0x17c]
add ecx, 1
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0x17c]
cmp edx, dword [ebp + 0x14]
jae 0x10004a68
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.10009790
add esp, 4
add eax, 1
push eax
call fcn.100041a0
add esp, 4
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.10004550
add esp, 0xc
test eax, eax
je 0x10004a66
jmp 0x1000467a
jmp 0x10004a0b
mov edx, dword [ebp - 0x188]
push edx
call fcn.100069a5
add esp, 4
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x10004a97
jmp 0x1000467a
mov ecx, dword [ebp - 0x188]
push ecx
push 0
mov edx, dword [ebp - 0x180]
push edx
call fcn.10007990
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 0x10004af9
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.10003f30
add esp, 0x10
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jne 0x10004b2e
jmp 0x1000467a
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 0x10004bc3
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 0x10004bbe
imul edx, dword [ebp - 0x1b4], 0x14
cmp dword [ebp - 0x190], edx
jae 0x10004bc3
jmp 0x1000467a
mov dword [ebp - 0x17c], 0
jmp 0x10004bde
mov eax, dword [ebp - 0x17c]
add eax, 1
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
cmp ecx, dword [ebp + 0x14]
jae 0x10004dc3
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.10003560
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jge 0x10004c2d
jmp 0x1000467a
push 0x10013384
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.100043b0
add esp, 0xc
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jge 0x10004c68
jmp 0x1000467a
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.10009790
add esp, 4
add eax, 1
push eax
call fcn.100041a0
add esp, 4
add eax, dword [ebp - 0x18c]
mov dword [ebp - 0x18c], eax
jmp 0x10004bcf
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 0x10004dec
jmp 0x1000467a
mov edx, 8
imul eax, edx, 0xc
cmp dword [ebp + eax - 0xc0], 0
jne 0x10004e28
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.100032c0
test eax, eax
jne 0x10004e7b
jmp 0x1000467a
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 0x10004ea9
jmp 0x1000467a
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 0x10004ed6
jmp 0x1000467a
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 0x10004f04
jmp 0x1000467a
mov dword [ebp - 0x1d0], 1
jmp 0x1000467a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006997
mov esp, ebp
pop ebp
ret