Function at 0x401400
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x234
mov eax, dword [0x414174]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
mov esi, dword [0x416098]
mov eax, dword [esi + 4]
push edi
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x10], eax
mov dword [0x415ef0], 0
test eax, eax
jle 0x401636
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edi, [esi + 0xa8]
lea esp, [esp]
xor eax, eax
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4014bd
lea ecx, [esp + 0x14]
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp ax, 9
je 0x4014b8
cmp ax, 6
jne 0x4014bd
mov edx, dword [esi + 0x14]
jmp 0x4014c0
mov edx, dword [esi + 0x10]
mov eax, dword [0x415ef0]
mov ecx, dword [esi + 4]
push edx
push eax
push 0x1073
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 8]
push 0
push 0x104
push edi
push edx
push eax
call ebx
push 0x208
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.004046b0
mov edx, dword [esi + 0xa0]
push edx
push edi
lea eax, [esp + 0x4c]
push str.ReadProcessMemory_s_local_s_n_n
push eax
call fcn.00402cfb
add esp, 0x1c
lea ecx, [esp + 0x38]
push ecx
call ebp
test edi, edi
je 0x40156f
mov eax, dword [esi + 0xa0]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40154c
test dx, dx
je 0x401548
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40154c
add eax, 4
add ecx, 4
test dx, dx
jne 0x401526
xor eax, eax
jmp 0x401551
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401579
mov eax, dword [0x415ef0]
inc eax
cmp eax, dword [esp + 0x10]
mov dword [0x415ef0], eax
jl 0x401460
jmp 0x401636
mov eax, 0x80004005
call fcn.00402270
xor eax, eax
lea edi, [esi + 0x1ac]
push eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push 0x10
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edi
push edx
push eax
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esi + 0x1c]
mov edx, dword [0x415ef0]
mov eax, dword [esi + 4]
push ecx
push edx
push 0x100e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 8]
push 0
push 0x10
push edi
push ecx
push edx
call ebx
push 0x208
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004046b0
mov ecx, dword [esi + 0x1b8]
mov edx, dword [esi + 0x1b4]
mov eax, dword [esi + 0x1b0]
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
lea edx, [esp + 0x54]
push str.DeskLinIconRect_lu__lu__lu__lu
push edx
call fcn.00402cfb
add esp, 0x24
lea eax, [esp + 0x38]
push eax
call ebp
mov ebx, dword [edi]
mov ecx, dword [esi + 0x1b8]
mov eax, dword [esi + 0x1b4]
sub ecx, dword [esi + 0x1b0]
sub eax, ebx
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add ebx, eax
mov dword [edi], ebx
add ebx, ecx
mov dword [esi + 0x1b4], ebx
mov ecx, dword [esp + 0x10]
cmp dword [0x415ef0], ecx
jne 0x401658
inc dword [esi + 0x1d4]
cmp dword [esi + 0x1d4], 0xa
jb 0x401658
push 0
call fcn.00403033
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.00402bc1
add esp, 0x234
ret