Function at 0x401d90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x198], eax
mov eax, dword [ebp + 0x14]
push 0x40
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x164]
push 0
push eax
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x1a0], 0
call fcn.00405580
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x168]
add esp, 0xc
push eax
push 0x40
lea eax, [ebp - 0x164]
push eax
push edi
push ebx
call esi
test eax, eax
je 0x40220a
cmp dword [ebp - 0x168], 0x40
jb 0x40220a
push 0xf8
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00405580
add esp, 0xc
lea eax, [ebp - 0x168]
push eax
push 0xf8
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x128]
add eax, edi
push eax
push ebx
call esi
test eax, eax
je 0x40220a
cmp dword [ebp - 0x168], 0xf8
jb 0x40220a
mov eax, 0x10b
cmp word [ebp - 0x10c], ax
je 0x401e90
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1a0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004036fa
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebp - 0x110]
xor edi, edi
mov eax, dword [ebp - 0x128]
add ecx, 0x18
add eax, ecx
mov dword [ebp - 0x54], 0
xor ecx, ecx
mov dword [ebp - 0x50], 0
cmp cx, word [ebp - 0x11e]
jae 0x401f4b
mov ebx, dword [ebp - 0x170]
add ebx, eax
nop dword [eax]
lea eax, [ebp - 0x168]
xorps xmm0, xmm0
push eax
push 0x28
lea eax, [ebp - 0x2c]
movq qword [ebp - 0xc], xmm0
push eax
push ebx
push dword [ebp - 0x16c]
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
call esi
test eax, eax
je 0x40220a
cmp dword [ebp - 0x168], 0x28
jb 0x40220a
cmp dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0xa4]
jne 0x401f34
mov ecx, dword [ebp - 0x20]
cmp edx, ecx
jb 0x401f34
mov esi, dword [ebp - 0x1c]
lea eax, [esi + ecx]
cmp edx, eax
jae 0x401f2e
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movzx eax, word [ebp - 0x11e]
inc edi
add ebx, 0x28
cmp edi, eax
jb 0x401ed0
mov ebx, dword [ebp - 0x16c]
jmp 0x401f51
mov edx, dword [ebp - 0xa4]
test edx, edx
je 0x401fe9
cmp dword [ebp - 0xa0], 0
jne 0x401fe9
mov esi, dword [ebp - 0x170]
lea eax, [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esi, edx
push 0
push 0x14
push eax
push esi
push ebx
call edi
test eax, eax
je 0x40220a
nop dword [eax + eax]
add dword [ebp - 0xa0], 0x14
cmp dword [ebp - 0xc], 0
je 0x401fc7
push 0
push 0x14
lea eax, [ebp - 0x18]
add esi, 0x14
push eax
push esi
push ebx
call edi
test eax, eax
jne 0x401f90
mov eax, dword [ebp - 0x1a0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004036fa
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
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 dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call edi
cmp eax, esi
je 0x401fe9
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x184]
mov eax, 0xcccccccd
mul dword [ebp - 0xa0]
mov eax, edi
mov ecx, edx
mov edx, 0x14
mul edx
shr ecx, 4
mov esi, eax
test edx, edx
ja 0x40220a
jb 0x40201d
cmp esi, 0xffffffff
ja 0x40220a
lea eax, [ecx + ecx*4]
shl eax, 2
mov dword [ebp - 0x18c], eax
add eax, esi
cmp eax, esi
jb 0x40220a
lea ebx, [eax + 7]
and ebx, 0xfffffff8
mov dword [ebp - 0x188], ebx
cmp ebx, eax
jb 0x40220a
lea eax, [ebp - 0x174]
push eax
push edi
push 0x10
call fcn.00401d60
add esp, 0xc
test eax, eax
jne 0x40220a
mov ecx, dword [ebp - 0x174]
add ecx, ebx
mov dword [ebp - 0x178], ecx
cmp ecx, ebx
jb 0x40220a
mov ebx, ecx
xor edx, edx
mov dword [ebp - 0x17c], ebx
test edi, edi
je 0x4020c6
nop word [eax + eax]
mov eax, dword [ebp - 0x198]
mov ecx, dword [eax + edx*4]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4020a0
sub ecx, esi
lea eax, [ecx + 4]
and eax, 0xfffffffc
add eax, ebx
cmp eax, ebx
jb 0x40220a
inc edx
mov ebx, eax
mov dword [ebp - 0x17c], ebx
cmp edx, edi
jb 0x402090
push ebx
call fcn.004036ec
add esp, 4
mov dword [ebp - 0x180], eax
test eax, eax
je 0x40220a
push ebx
push 0
push eax
call fcn.00405580
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x100]
add esp, 0xc
add ebx, edx
mov dword [ebp - 8], 0
add ebx, dword [ebp - 0x104]
xorps xmm0, xmm0
add ebx, dword [ebp - 0x108]
add ebx, dword [ebp - 0xf8]
push 0x1c
cmp edx, ebx
movq qword [ebp - 0x10], xmm0
push eax
cmovae ebx, edx
push ebx
push dword [ebp - 0x16c]
mov dword [ebp - 0x174], ebx
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4021f6
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop dword [eax + eax]
mov edx, dword [ebp - 0x14]
mov eax, edx
and eax, 0xfff
cmp eax, 0xfff
je 0x4021fc
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x20]
jne 0x4021c5
cmp ecx, ebx
lea eax, [edx + ecx]
mov esi, ebx
cmova esi, ecx
add esi, 0xffff
and esi, 0xffff0000
cmp esi, eax
jae 0x4021c5
nop dword [eax + eax]
push 4
push 0x3000
push dword [ebp - 0x17c]
push esi
push dword [ebp - 0x16c]
call edi
mov ebx, eax
test ebx, ebx
jne 0x402221
mov edx, dword [ebp - 0x14]
add esi, 0x10000
mov ecx, dword [ebp - 0x20]
lea eax, [edx + ecx]
cmp esi, eax
jb 0x402190
mov ebx, dword [ebp - 0x174]
lea eax, [edx + ecx]
mov dword [ebp - 8], 0
push 0x1c
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
push eax
push dword [ebp - 0x16c]
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x402150
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x180]
call fcn.004036f5
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1a0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004036fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xa4]
mov edi, ebx
sub edi, dword [ebp - 0x170]
mov dword [ebp - 0x174], edi
mov dword [ebp - 0x194], 0
test ecx, ecx
je 0x40228d
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 0x168]
mov esi, dword [ebp - 0x18c]
push eax
mov eax, dword [ebp - 0x184]
push esi
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
push eax
mov eax, dword [ebp - 0x170]
add eax, ecx
push eax
push dword [ebp - 0x16c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4021fc
cmp dword [ebp - 0x168], esi
jb 0x4021fc
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
cmp dword [ebp - 0x184], ecx
jbe 0x4023dd
mov esi, dword [ebp - 0x180]
lea eax, [esi + 4]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x188]
lea edx, [edi + eax]
add eax, 4
add eax, esi
mov dword [ebp - 0x190], edx
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x198]
add esi, edx
push dword [eax + ecx*4]
mov edi, dword [ebp - 0x17c]
lea eax, [eax + ecx*4]
sub edi, edx
mov dword [ebp - 0x1a4], eax
push edi
push esi
call fcn.00401c70
test eax, eax
js 0x4021fc
test edi, edi
je 0x402321
test esi, esi
je 0x402321
cmp edi, 2
jb 0x402321
cmp byte [esi], 0x3f
jne 0x402313
cmp byte [esi + 1], 0x3f
je 0x40231c
dec edi
inc esi
cmp edi, 2
jae 0x402308
jmp 0x402321
mov word [esi], 0x3233
mov esi, dword [ebp - 0x18c]
mov edi, dword [ebp - 0x188]
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x1a4]
mov dword [esi - 4], eax
add eax, 8
mov dword [edi - 4], 0x80000001
mov dword [edi], 0
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x174]
add eax, dword [ebp - 0x178]
mov dword [edi + 4], 0x80000001
mov dword [edi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov ecx, dword [ecx]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402380
add dword [ebp - 0x190], 0x10
sub ecx, edx
mov edx, dword [ebp - 0x178]
add esi, 0x14
add edi, 0x10
mov dword [ebp - 0x18c], esi
mov esi, dword [ebp - 0x180]
lea eax, [ecx + 4]
mov dword [ebp - 0x188], edi
mov ecx, dword [ebp - 0x19c]
and eax, 0xfffffffc
inc ecx
add edx, eax
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x19c], ecx
cmp ecx, dword [ebp - 0x184]
jb 0x4022d0
mov edi, dword [ebp - 0x174]
jmp 0x4023e3
mov edx, dword [ebp - 0x178]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push edx
push dword [ebp - 0x180]
push ebx
mov ebx, dword [ebp - 0x16c]
push ebx
call esi
test eax, eax
je 0x4021fc
cmp dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x17c]
jne 0x402416
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x194]
push eax
push 0x40
push dword [ebp - 0xd0]
mov dword [ebp - 0xa4], edi
mov edi, dword [ebp - 0x170]
push edi
push ebx
call fcn.00402db0
test eax, eax
je 0x4021fc
push 0
push 0x40
lea eax, [ebp - 0x164]
mov dword [ebp - 0xcc], 0
push eax
push edi
push ebx
call esi
test eax, eax
je 0x4021fc
push 0
push 0xf8
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x128]
add eax, edi
push eax
push ebx
call esi
test eax, eax
je 0x4021fc
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x194]
push dword [ebp - 0xd0]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x4021fc
mov dword [ebp - 0x1a0], 1
jmp 0x4021fc