Function at 0x10004980
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.100078e0
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 0x100049fa
cmp dword [ebp - 0x190], 0x40
jae 0x10004a33
cmp dword [ebp - 0x180], 0
je 0x10004a28
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x1d4], eax
mov ecx, dword [ebp - 0x1d4]
push ecx
call fcn.10006d34
add esp, 4
mov dword [ebp - 0x180], 0
mov eax, dword [ebp - 0x1d0]
jmp 0x10005296
push 0xf8
push 0
lea edx, [ebp - 0x138]
push edx
call fcn.100078e0
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 0x10004a82
cmp dword [ebp - 0x190], 0xf8
jae 0x10004a87
jmp 0x100049fa
movzx ecx, word [ebp - 0x120]
cmp ecx, 0x10b
je 0x10004aa3
push 9
call sub.KERNEL32.dll_SetLastError
nop
jmp 0x100049fa
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 0x10004afb
mov eax, dword [ebp - 0x1a4]
add eax, 1
mov dword [ebp - 0x1a4], eax
movzx ecx, word [ebp - 0x132]
cmp dword [ebp - 0x1a4], ecx
jae 0x10004bc2
push 0x28
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.100078e0
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 0x10004b57
cmp dword [ebp - 0x190], 0x28
jae 0x10004b5c
jmp 0x100049fa
mov edx, 8
imul eax, edx, 0xc
cmp dword [ebp + eax - 0xc0], 0
jne 0x10004bbd
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp + ecx - 0xc0]
cmp edx, dword [ebp - 0x20]
jb 0x10004bbd
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x1c]
cmp dword [ebp + eax - 0xc0], ecx
jae 0x10004bbd
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 0x10004aec
mov edx, 8
shl edx, 0
cmp dword [ebp + edx - 0xc0], 0
je 0x10004c9b
mov eax, 8
shl eax, 0
cmp dword [ebp + eax - 0xbc], 0
jne 0x10004c9b
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 0x10004c2a
jmp 0x100049fa
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 0x10004c53
jmp 0x10004c6b
mov eax, dword [ebp - 0x1b0]
add eax, 0x14
mov dword [ebp - 0x1b0], eax
mov ecx, 1
test ecx, ecx
jne 0x10004c09
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
nop
call sub.KERNEL32.dll_GetLastError
cmp eax, dword [ebp - 0x1c4]
je 0x10004c9b
mov edx, dword [ebp - 0x1c4]
push edx
call sub.KERNEL32.dll_SetLastError
nop
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.10004950
add esp, 0xc
test eax, eax
je 0x10004cd7
jmp 0x100049fa
lea ecx, [ebp - 0x1c8]
push ecx
imul edx, dword [ebp - 0x1b4], 0x14
push edx
mov eax, dword [ebp - 0x1dc]
push eax
call fcn.100048d0
add esp, 0xc
test eax, eax
je 0x10004cfe
jmp 0x100049fa
mov ecx, dword [ebp - 0x1c8]
push ecx
call fcn.10004530
add esp, 4
mov dword [ebp - 0x1ac], eax
mov edx, dword [ebp - 0x1ac]
cmp edx, dword [ebp - 0x1c8]
jae 0x10004d26
jmp 0x100049fa
lea eax, [ebp - 0x1e0]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0x10
call fcn.10004950
add esp, 0xc
test eax, eax
je 0x10004d44
jmp 0x100049fa
lea edx, [ebp - 0x1e4]
push edx
mov eax, dword [ebp - 0x1e0]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
call fcn.100048d0
add esp, 0xc
test eax, eax
je 0x10004d6a
jmp 0x100049fa
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 0x10004d9d
mov ecx, dword [ebp - 0x17c]
add ecx, 1
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0x17c]
cmp edx, dword [ebp + 0x14]
jae 0x10004deb
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.1000a010
add esp, 4
add eax, 1
push eax
call fcn.10004520
add esp, 4
push eax
mov ecx, dword [ebp - 0x188]
push ecx
call fcn.100048d0
add esp, 0xc
test eax, eax
je 0x10004de9
jmp 0x100049fa
jmp 0x10004d8e
mov edx, dword [ebp - 0x188]
push edx
call fcn.10006d2b
add esp, 4
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x180], eax
cmp dword [ebp - 0x180], 0
jne 0x10004e1a
jmp 0x100049fa
mov ecx, dword [ebp - 0x188]
push ecx
push 0
mov edx, dword [ebp - 0x180]
push edx
call fcn.100078e0
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 0x10004e7c
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.100042b0
add esp, 0x10
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
jne 0x10004eb1
jmp 0x100049fa
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 0x10004f46
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 0x10004f41
imul edx, dword [ebp - 0x1b4], 0x14
cmp dword [ebp - 0x190], edx
jae 0x10004f46
jmp 0x100049fa
mov dword [ebp - 0x17c], 0
jmp 0x10004f61
mov eax, dword [ebp - 0x17c]
add eax, 1
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
cmp ecx, dword [ebp + 0x14]
jae 0x10005146
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.100038e0
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jge 0x10004fb0
jmp 0x100049fa
push 0x1001362c
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.10004730
add esp, 0xc
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jge 0x10004feb
jmp 0x100049fa
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.1000a010
add esp, 4
add eax, 1
push eax
call fcn.10004520
add esp, 4
add eax, dword [ebp - 0x18c]
mov dword [ebp - 0x18c], eax
jmp 0x10004f52
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 0x1000516f
jmp 0x100049fa
mov edx, 8
imul eax, edx, 0xc
cmp dword [ebp + eax - 0xc0], 0
jne 0x100051ab
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.10003640
test eax, eax
jne 0x100051fe
jmp 0x100049fa
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 0x1000522c
jmp 0x100049fa
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 0x10005259
jmp 0x100049fa
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 0x10005287
jmp 0x100049fa
mov dword [ebp - 0x1d0], 1
jmp 0x100049fa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006d1d
mov esp, ebp
pop ebp
ret