Function at 0x270140d7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x270b313c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x9c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x40
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x74]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0xac], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0x40
lea eax, [ebp - 0x74]
push eax
push ebx
push esi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x270145f6
cmp dword [ebp - 0x80], 0x40
jb 0x270145f6
mov edi, 0xf8
push edi
lea eax, [ebp - 0x1ac]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [ebp - 0x38]
add eax, ebx
push eax
push esi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x270145f6
cmp dword [ebp - 0x80], edi
jb 0x270145f6
lea eax, [edi + 0x13]
cmp word [ebp - 0x194], ax
je 0x27014199
push 9
call sub.KERNEL32.dll_SetLastError
jmp 0x270145f6
movzx eax, word [ebp - 0x198]
mov edx, dword [ebp - 0x38]
xor ecx, ecx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], ecx
lea eax, [eax + edx + 0x18]
mov dword [ebp - 0x7c], ecx
cmp cx, word [ebp - 0x1a6]
jae 0x27014236
add eax, ebx
mov dword [ebp - 0x78], eax
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
push 0x28
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x78]
push esi
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x270145f6
cmp dword [ebp - 0x80], 0x28
jb 0x270145f6
cmp dword [ebp - 0xd4], 0
jne 0x27014223
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x12c], eax
jb 0x27014223
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax]
cmp dword [ebp - 0x12c], edx
jae 0x27014223
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd0], ecx
movzx eax, word [ebp - 0x1a6]
inc dword [ebp - 0x7c]
add dword [ebp - 0x78], 0x28
cmp dword [ebp - 0x7c], eax
jb 0x270141c6
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x2701429b
cmp dword [ebp - 0x128], 0
jne 0x2701429b
lea esi, [ebx + eax]
xor edi, edi
jmp 0x2701425f
add dword [ebp - 0x128], 0x14
cmp dword [ebp - 0x10], edi
je 0x2701427b
add esi, 0x14
push edi
push 0x14
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x84]
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x27014250
jmp 0x270145f6
call sub.KERNEL32.dll_GetLastError
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
mov esi, eax
call sub.KERNEL32.dll_OutputDebugStringW
call sub.KERNEL32.dll_GetLastError
cmp eax, esi
je 0x2701429b
push esi
call sub.KERNEL32.dll_SetLastError
mov eax, dword [ebp - 0x128]
push 0x14
pop ecx
xor edx, edx
div ecx
xor esi, esi
push esi
push ecx
push esi
push dword [ebp + 0x10]
mov edi, eax
call fcn.2708c0a0
test edx, edx
ja 0x270145f6
jb 0x270142ca
cmp eax, 0xffffffff
ja 0x270145f6
mov ecx, edi
imul ecx, ecx, 0x14
mov dword [ebp - 0x78], ecx
add ecx, eax
cmp ecx, eax
jb 0x270145f6
lea edi, [ecx + 7]
and edi, 0xfffffff8
mov dword [ebp - 0x8c], edi
cmp edi, ecx
jb 0x270145f6
push 0
push 0x10
push esi
push dword [ebp + 0x10]
call fcn.2708c0a0
test edx, edx
ja 0x270145f6
jb 0x27014310
cmp eax, 0xffffffff
ja 0x270145f6
add eax, edi
cmp eax, edi
jb 0x270145f6
xor esi, esi
mov edi, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x90], edi
cmp dword [ebp + 0x10], esi
jbe 0x2701435f
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + esi*4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x27014338
sub eax, ecx
add eax, 4
and eax, 0xfffffffc
add eax, edi
cmp eax, edi
jb 0x270145f6
inc esi
mov dword [ebp - 0x90], eax
mov edi, eax
cmp esi, dword [ebp + 0x10]
jb 0x2701432c
mov esi, edi
call fcn.27014f53
mov dword [ebp - 0x88], eax
test eax, eax
je 0x270145f6
push edi
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x188]
add eax, ebx
add eax, dword [ebp - 0x18c]
add esp, 0xc
add eax, dword [ebp - 0x190]
mov ecx, ebx
add eax, dword [ebp - 0x180]
cmp ebx, eax
jae 0x270143a2
mov ecx, eax
push edi
push ecx
push dword [ebp - 0x84]
call fcn.27013f25
mov esi, eax
add esp, 0xc
mov dword [ebp - 0xa4], esi
test esi, esi
je 0x270145eb
mov eax, dword [ebp - 0x12c]
and dword [ebp - 0x94], 0
sub esi, ebx
mov dword [ebp - 0xa0], esi
test eax, eax
je 0x27014411
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 0x10]
push dword [ebp - 0x78]
imul ecx, ecx, 0x14
add ecx, dword [ebp - 0x88]
add eax, ebx
push ecx
push eax
push dword [ebp - 0x84]
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
je 0x270145eb
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x80], eax
jb 0x270145eb
and dword [ebp - 0x78], 0
cmp dword [ebp + 0x10], 0
jbe 0x27014527
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x88]
lea ebx, [esi + eax]
add edi, 4
lea esi, [eax + ecx + 4]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x98]
mov edx, dword [ebp - 0x90]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x7c]
push dword [eax]
sub edx, ecx
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp - 0x88]
push dword [ebp - 0x8c]
add edx, ecx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb0], edx
call fcn.270120c7
test eax, eax
jl 0x270145eb
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xb0]
xor ecx, ecx
cmp edx, ecx
je 0x270144b4
cmp eax, ecx
je 0x270144b4
jmp 0x270144a6
cmp byte [eax], 0x3f
jne 0x270144a4
cmp byte [eax + 1], 0x3f
je 0x270144ad
dec edx
inc eax
cmp edx, 2
jae 0x27014499
jmp 0x270144b4
mov byte [eax], 0x33
mov byte [eax + 1], 0x32
mov dword [edi - 4], ebx
mov dword [esi], ecx
mov eax, reloc.WS2_32.dll_accept
mov dword [esi - 4], eax
lea edx, [ebx + 8]
mov dword [edi + 0xc], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xa0]
mov dword [esi + 8], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x7c]
add eax, ecx
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x270144eb
sub eax, ecx
add eax, 4
and eax, 0xfffffffc
add dword [ebp - 0x7c], eax
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
add ebx, 0x10
add esi, 0x10
add edi, 0x14
cmp eax, dword [ebp + 0x10]
jb 0x2701443b
mov edi, dword [ebp - 0x90]
mov esi, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0xac]
push 0
push dword [ebp - 0x7c]
push dword [ebp - 0x88]
push dword [ebp - 0xa4]
push dword [ebp - 0x84]
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x270145eb
cmp dword [ebp - 0xd4], 0
jne 0x27014560
mov dword [ebp - 0xd4], esi
mov dword [ebp - 0xd0], edi
lea eax, [ebp - 0x94]
push eax
push 0x40
push dword [ebp - 0x158]
mov dword [ebp - 0x12c], esi
mov esi, dword [ebp - 0x84]
push ebx
push esi
mov dword [ebp - 0x128], edi
call fcn.2701324d
test eax, eax
je 0x270145eb
xor edi, edi
push edi
push 0x40
lea eax, [ebp - 0x74]
push eax
push ebx
push esi
mov dword [ebp - 0x154], edi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x270145eb
push edi
push 0xf8
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [ebp - 0x38]
add eax, ebx
push eax
push esi
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
je 0x270145eb
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
push dword [ebp - 0x158]
push ebx
push esi
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x270145eb
mov dword [ebp - 0x9c], 1
lea esi, [ebp - 0x88]
call fcn.27014f66
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.27088f70
leave
ret