Function at 0x401c1c
Capabilities:
Check os version
Enumerate process modules
Get graphical window text
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c9ae
mov eax, dword fs:[0]
push eax
mov eax, 0x11a4
call fcn.004f4290
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1170], ebx
mov dword [ebp - 0x1178], eax
test ebx, ebx
je 0x402979
cmp dword [ebx], 0xa68
jb 0x402979
mov esi, 0x100
lea eax, [ebp - 0x2b8]
push esi
xor edi, edi
push edi
push eax
call fcn.004f5a90
push esi
lea eax, [ebp - 0x188]
push edi
push eax
call fcn.004f5a90
call fcn.004e3cd3
movzx eax, al
push 0x118
mov dword [ebp - 0x1168], eax
lea eax, [ebp - 0xcd0]
push edi
push eax
mov dword [ebp - 0xcd4], 0x11c
call fcn.004f5a90
add esp, 0x24
lea eax, [ebp - 0xcd4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0xcc0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp - 0xcc0]
lea ecx, [ebp - 0xbc0]
lea esi, [esi + eax*2]
lea eax, [esi + 0x14]
mov dword [ebp - 0x116c], esi
cmp eax, ecx
jae 0x401d09
lea eax, [esi + 2]
cmp word [eax], di
cmovne esi, eax
mov dword [ebp - 0x116c], esi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0x40
mov dword [ebp - 0x1174], eax
lea eax, [ebp - 0x88]
push edi
push eax
mov dword [ebp - 0x1190], edi
mov dword [ebp - 0x118c], edi
mov dword [ebp - 0x11b0], edi
mov dword [ebp - 0x11ac], edi
mov dword [ebp - 0x11a8], edi
mov dword [ebp - 0x11a4], edi
mov dword [ebp - 0x11a0], edi
mov dword [ebp - 0x119c], edi
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x11a0]
push eax
lea eax, [ebp - 0x11a8]
push eax
lea eax, [ebp - 0x11b0]
push eax
lea eax, [ebp - 0x1190]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x401e1c
mov dword [ebp - 0x1180], edi
xor eax, eax
mov dword [ebp - 0x117c], edi
lea edi, [ebp - 0xba8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1180]
push eax
lea eax, [ebp - 0x1190]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x401e1c
lea eax, [ebp - 0xba8]
push eax
lea eax, [ebp - 0x1180]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x401e1c
movzx eax, word [ebp - 0xb9a]
push eax
movzx eax, word [ebp - 0xb9c]
push eax
movzx eax, word [ebp - 0xb9e]
push eax
movzx eax, word [ebp - 0xba0]
push eax
movzx eax, word [ebp - 0xba2]
push eax
movzx eax, word [ebp - 0xba6]
push eax
movzx eax, word [ebp - 0xba8]
push eax
lea eax, [ebp - 0x88]
push str._u__02u__02u__02u:_02u:_02u._03u
push eax
call fcn.00401104
add esp, 0x24
mov eax, dword [ebp - 0x1168]
inc eax
shl eax, 5
push eax
push dword [ebp - 0xcc8]
lea eax, [ebp - 0x188]
push dword [ebp - 0xccc]
push dword [ebp - 0xcd0]
push str._u._u._u.x_u
push eax
call fcn.00401133
add esp, 0x18
cmp dword [ebp - 0xcd0], 6
jne 0x401e7e
cmp dword [ebp - 0xccc], 3
jne 0x401e7e
call fcn.004e3a40
test al, al
je 0x401e7e
push str.__Win10_
push 0x80
lea eax, [ebp - 0x188]
push eax
call fcn.004019cd
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
mov edi, 0x514870
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp word [ebp - 0x20], 0
je 0x401eac
cmp word [ebp - 0x1e], 0
mov eax, 0x521b6c
jne 0x401eae
mov eax, edi
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0x1c
push 5
push 0x12
lea eax, [ebp - 0x1b8]
push 0x521b70
push eax
call fcn.004010ee
mov al, byte [ebp - 0xbba]
add esp, 0x1c
cmp al, 1
jne 0x401ede
push str.workstation
jmp 0x401ef2
cmp al, 3
jne 0x401ee9
push str.server
jmp 0x401ef2
cmp al, 2
jne 0x401eff
push str.domain
push 0x14
lea eax, [ebp - 0x48]
push eax
call fcn.00401a0b
jmp 0x401f14
movzx eax, al
push eax
lea eax, [ebp - 0x48]
push 0x521bcc
push eax
call fcn.004010d8
add esp, 0xc
lea eax, [ebp - 0xcd4]
push eax
call fcn.004011a3
movzx esi, word [esi]
pop ecx
mov dword [ebp - 0x1168], eax
lea eax, [ebp - 0x88]
push eax
push dword [ebx + 0x1c0]
push dword [ebx + 0x1d4]
push dword [ebx + 0x1d0]
push dword [ebx + 0x1b0]
push dword [ebx + 0x1cc]
push dword [ebx + 0x1c8]
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push dword [ebx + 0x1bc]
movzx eax, byte [ebp - 0xbb9]
test si, si
push dword [ebx + 0x1b8]
mov esi, dword [ebp - 0x1168]
push eax
mov eax, 0x521a98
cmove eax, edi
push eax
push dword [ebp - 0x116c]
mov eax, 0x521bd4
cmove eax, edi
test esi, esi
push eax
push dword [ebx + 0x1c4]
mov eax, edi
cmovne eax, esi
push eax
movzx eax, word [ebp - 0xbbc]
push eax
movzx eax, word [ebp - 0xbbe]
push eax
movzx eax, word [ebp - 0xbc0]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x188]
push eax
push 0x20
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0xb18]
push str.ConEmu__s___u__Startup_Info_r_n__OsVer:__s__Product:__s__SP:__u._u__Suite:_0x_X_r_n__Build:__s__ReactOS:__u_s_s_s__Rsrv:__u__WINE:__u__PE:__u__R2:__u_r_n__DBCS:__u__IMM:__u__Remote:__u__ACP:__u__OEMCP:__u__Admin:__u_r_n__StartTime:__s_r_n
push eax
call fcn.0040111a
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0xb18]
push 0
xor ebx, ebx
inc ebx
push ebx
push edi
push eax
call dword [ebp - 0x1178]
add esp, 0x74
test esi, esi
je 0x402003
push esi
call fcn.004e1bea
pop ecx
xor esi, esi
mov dword [ebp - 0x1168], esi
mov dword [ebp - 0x116c], esi
call fcn.004e3c37
test al, al
je 0x40211b
push str.UxTheme.dll
lea ecx, [ebp - 0x1198]
call fcn.004e3fe7
lea eax, [ebp - 0x1168]
mov dword [ebp - 4], esi
push eax
push str.IsAppThemed
lea ecx, [ebp - 0x1198]
mov dword [ebp - 0x116c], esi
call fcn.00401080
test al, al
je 0x402093
lea eax, [ebp - 0x117c]
mov dword [ebp - 0x116c], esi
push eax
push str.IsThemeActive
lea ecx, [ebp - 0x1198]
call fcn.00401080
test al, al
je 0x402093
call dword [ebp - 0x1168]
test eax, eax
je 0x40208d
call dword [ebp - 0x117c]
mov dword [ebp - 0x116c], ebx
test eax, eax
jne 0x402093
mov dword [ebp - 0x116c], esi
mov dword [ebp - 0x1168], esi
call fcn.004e3af4
test al, al
je 0x40210c
push str.dwmapi.dll
lea ecx, [ebp - 0xba0]
call fcn.004e3fe7
lea eax, [ebp - 0x117c]
mov byte [ebp - 4], bl
push eax
push str.DwmIsCompositionEnabled
lea ecx, [ebp - 0xba0]
mov dword [ebp - 0x1168], esi
call fcn.00401080
test al, al
je 0x402101
lea eax, [ebp - 0x1168]
mov dword [ebp - 0x1168], esi
push eax
call dword [ebp - 0x117c]
test eax, eax
jne 0x4020fb
cmp dword [ebp - 0x1168], eax
mov dword [ebp - 0x1168], ebx
jne 0x402101
mov dword [ebp - 0x1168], esi
lea ecx, [ebp - 0xba0]
call fcn.004e400d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1198]
call fcn.004e400d
mov esi, dword [ebp - 0x1170]
mov eax, str._NULL_
push 0x80
cmp dword [esi + 0xc], 0
cmovne eax, dword [esi + 0xc]
push eax
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [esi + 0x10], 0
mov eax, str._NULL_
push 0x80
cmovne eax, dword [esi + 0x10]
push eax
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebp - 0x1170]
mov esi, 0x521e20
mov eax, 0x514870
mov ecx, esi
push dword [edx + 0x44]
cmp dword [edx + 0x10], 0
push dword [edx + 0x40]
cmove ecx, eax
cmp dword [edx + 0xc], 0
push dword [edx + 0x3c]
cmove esi, eax
movzx eax, word [edx + 0x34]
push 8
push 4
push 4
push 2
push ebx
push dword [ebp - 0x1174]
push eax
push dword [edx + 0x30]
lea eax, [ebp - 0x188]
push dword [edx + 0x20]
push dword [edx + 0x1c]
push dword [edx + 0x18]
push dword [edx + 0x14]
push ecx
push eax
push ecx
push dword [ebp - 0x1168]
push dword [ebp - 0x116c]
call fcn.004e9883
push eax
call fcn.004e9923
push eax
push esi
lea eax, [ebp - 0x2b8]
push eax
push esi
lea eax, [ebp - 0xb18]
push str.__Desktop:__s_s_s__SessionId:__s__ConsoleSessionId:__u__Theming:__u__DWM:__u_r_n__Title:__s_s_s_r_n__Size:__u__u__u__u_r_n__Flags:_0x_08X__ShowWindow:__u__ConHWnd:_0x_08X_r_n__char:__u__short:__u__int:__u__long:__u__u64:__u_r_n__Handles:_0x_08X__0x_08X__0x_08X_r_n
push eax
call fcn.0040111a
mov esi, dword [ebp - 0x1178]
lea eax, [ebp - 0xb18]
push 0
push 0
push edi
push eax
call esi
add esp, 0x7c
cmp dword [ebp - 0x1174], 0
je 0x4022b5
xor eax, eax
push str.kernel32.dll
mov word [ebp - 0xb18], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402232
push str.GetConsoleKeyboardLayoutNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x402234
xor eax, eax
mov dword [ebp - 0x1174], eax
test eax, eax
je 0x402280
push 0x100
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
call dword [ebp - 0x1174]
test eax, eax
je 0x402280
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0xb18]
push str.__Active_console_layout_name:__s
push eax
call fcn.0040111a
add esp, 0xc
cmp word [ebp - 0xb18], 0
jne 0x4022a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb18]
push str.__Active_console_layout:_Unknown__code_u
push eax
call fcn.0040111a
add esp, 0xc
push ebx
push 0
lea eax, [ebp - 0xb18]
push edi
push eax
call esi
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0xb18]
push str.__Current_PID:__u__TID:__u
push eax
call fcn.0040111a
push ebx
push 0
lea eax, [ebp - 0xb18]
push edi
push eax
call esi
push 0x80
lea eax, [ebp - 0xb98]
push 0
push eax
call fcn.004f5a90
add esp, 0x2c
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
mov dword [ebp - 0xb98], eax
lea eax, [ebp - 0xb18]
push str.__Active_HKL:_0x_08X
push eax
call fcn.0040111a
push ebx
push 0
lea eax, [ebp - 0xb18]
push edi
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0xb98]
push eax
push 0x20
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 0x116c], eax
test eax, eax
je 0x4023e7
cmp eax, 0x20
ja 0x4023e7
push str.__GetKeyboardLayoutList:
push 0x410
lea eax, [ebp - 0xb18]
push eax
call fcn.00401a0b
lea eax, [ebp - 0xb18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
and dword [ebp - 0x117c], 0
mov ecx, eax
cmp dword [ebp - 0x116c], 0
mov dword [ebp - 0x1174], ecx
jbe 0x4023d5
mov ebx, dword [ebp - 0x117c]
push dword [ebp + ebx*4 - 0xb98]
lea esi, [ebp - 0xb18]
push str._0x_08X
lea esi, [esi + ecx*2]
push 0x12
push esi
call fcn.004e22e7
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x1174]
add ecx, eax
inc ebx
mov dword [ebp - 0x1174], ecx
cmp ebx, dword [ebp - 0x116c]
jb 0x40238e
mov esi, dword [ebp - 0x1178]
xor ebx, ebx
inc ebx
push ebx
push 0
lea eax, [ebp - 0xb18]
push edi
push eax
call esi
add esp, 0x10
jmp 0x40240f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xb18]
push str.__GetKeyboardLayoutList_failed__code_u
push eax
call fcn.0040111a
push ebx
push 0
lea eax, [ebp - 0xb18]
push edi
push eax
call esi
add esp, 0x1c
push 0
push 0
push edi
push str.CmdLine:
call esi
mov ecx, dword [ebp - 0x1170]
push ebx
push 0
push edi
mov eax, dword [ecx + 0x19c]
test eax, eax
mov ecx, str._NULL_
cmovne ecx, eax
push ecx
call esi
push 0
push 0
push edi
push str.ExecMod:
call esi
mov eax, dword [ebp - 0x1170]
mov ecx, str._NULL_
push ebx
push 0
push edi
mov eax, dword [eax + 0x1a0]
test eax, eax
cmovne ecx, eax
push ecx
call esi
add esp, 0x40
push 0
push 0
push edi
push str.WorkDir:
call esi
mov eax, dword [ebp - 0x1170]
mov ecx, str._NULL_
push ebx
push 0
push edi
mov eax, dword [eax + 0x1a4]
test eax, eax
cmovne ecx, eax
push ecx
call esi
push 0
push 0
push edi
push str.PathEnv:
call esi
mov eax, dword [ebp - 0x1170]
mov ecx, str._NULL_
push ebx
push 0
push edi
mov eax, dword [eax + 0x1a8]
test eax, eax
cmovne ecx, eax
push ecx
call esi
add esp, 0x40
push 0
push 0
push edi
push str.ConFont:
call esi
mov eax, dword [ebp - 0x1170]
mov ecx, str._NULL_
push ebx
push 0
push edi
mov eax, dword [eax + 0xa60]
test eax, eax
cmovne ecx, eax
push ecx
call esi
mov eax, dword [ebp - 0x1170]
add esp, 0x20
xor ecx, ecx
push ebx
push ecx
push edi
cmp dword [eax + 0xa64], ecx
jne 0x402504
push str.CMDs_AutoRuns:_not_defined
call esi
add esp, 0x10
jmp 0x402521
push str.CMDs_AutoRuns:
call esi
mov eax, dword [ebp - 0x1170]
push 0
push 0
push edi
push dword [eax + 0xa64]
call esi
add esp, 0x20
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x117c], eax
lea edi, [ebp - 0xbb8]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x117c]
test edi, edi
je 0x402563
lea eax, [ebp - 0xbb8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x7f
lea eax, [ebp - 0x2b8]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
jmp 0x40256c
xor eax, eax
mov word [ebp - 0x2b8], ax
test edi, edi
je 0x402582
push 0x7f
lea eax, [ebp - 0x188]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40258b
xor eax, eax
mov word [ebp - 0x188], ax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0xbac]
lea eax, [ebp - 0xb18]
push dword [ebp - 0xbb0]
push dword [ebp - 0xbb4]
push dword [ebp - 0xbb8]
push edi
push str.Foreground:_x_08X__i__i__i__i__s____s
push eax
call fcn.0040111a
push ebx
xor edi, edi
lea eax, [ebp - 0xb18]
push edi
push dword [ebp + 0x10]
push eax
call esi
add esp, 0x34
mov dword [ebp - 0x1188], edi
lea eax, [ebp - 0x1188]
mov dword [ebp - 0x1184], edi
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
push dword [ebp - 0x1184]
push dword [ebp - 0x1188]
call dword [sym.imp.USER32.dll_MonitorFromPoint]
push 0x68
pop edi
push edi
mov dword [ebp - 0x117c], eax
lea eax, [ebp - 0xd3c]
push 0
push eax
call fcn.004f5a90
mov eax, dword [ebp - 0x1170]
add esp, 0xc
mov dword [ebp - 0xd3c], edi
mov edi, dword [eax + 0x48]
test edi, edi
je 0x402642
lea eax, [ebp - 0xd3c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
jne 0x402644
xor edi, edi
push edi
push dword [ebp - 0x117c]
lea eax, [ebp - 0xb18]
push dword [ebp - 0x1184]
push dword [ebp - 0x1188]
push str.MouseCursor:__i__i_MouseMonitor:__08X_StartMonitor:__08X
push eax
call fcn.0040111a
push ebx
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0xb18]
push eax
call esi
add esp, 0x28
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 0xc
push edi
mov dword [ebp - 0x116c], edi
call esi
mov ecx, dword [ebp - 0x1170]
push 0xe
push edi
mov dword [ecx + 0x1b4], eax
call esi
push 0x77
push edi
mov dword [ebp - 0x1168], eax
call esi
push 0x74
push edi
mov dword [ebp - 0x1174], eax
call esi
push 0x78
push edi
mov dword [ebp - 0x117c], eax
call esi
push 0x26
push edi
mov ebx, eax
call esi
push 0x58
push dword [ebp - 0x116c]
mov edi, eax
call esi
push 0x5a
push dword [ebp - 0x116c]
mov esi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x1170]
push dword [ecx + 0x1d8]
push eax
push esi
push edi
push ebx
push dword [ebp - 0x117c]
lea eax, [ebp - 0xb18]
push dword [ebp - 0x1174]
push dword [ebp - 0x1168]
push dword [ecx + 0x1b4]
push str.Display:_bpp_i__planes_i__align_i__vrefr_i__shadex_08X__rastx_08X__dpi_ix_i__per_mon_dpi_u
push eax
call fcn.0040111a
add esp, 0x2c
push dword [ebp - 0x116c]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0xb18]
mov ebx, dword [ebp - 0x1178]
xor esi, esi
inc esi
push esi
push 0
push edi
push eax
call ebx
push esi
push 0
push edi
push str.Monitors__dpi:_WholeDesktop__Effective__Angular__RAW_:
call ebx
mov eax, dword [ebp - 0x1170]
add esp, 0x20
and dword [ebp - 0x1168], 0
cmp dword [eax + 0x1dc], 0
jbe 0x4028a8
lea ecx, [eax + 0x228]
mov dword [ebp - 0x116c], ecx
push 4
xor edx, edx
lea ebx, [ecx - 0x1c]
pop eax
mov word [ebp - 0x2b8], dx
mov dword [ebp - 0x1174], eax
cmp dword [ebx - 4], 0
jne 0x4027a1
cmp dword [ebx], 0
je 0x4027eb
push dword [ebx]
test dx, dx
mov ecx, 0x5224c4
push dword [ebx - 4]
mov eax, 0x5224b0
cmove eax, ecx
push eax
lea eax, [ebp - 0x2f8]
push eax
call fcn.00401104
add esp, 0x10
lea eax, [ebp - 0x2f8]
push eax
push 0x80
lea eax, [ebp - 0x2b8]
push eax
call fcn.004019cd
mov dx, word [ebp - 0x2b8]
mov eax, dword [ebp - 0x1174]
add ebx, 8
sub eax, 1
mov dword [ebp - 0x1174], eax
jne 0x402796
mov ecx, dword [ebp - 0x116c]
mov edx, 0x514870
mov eax, str.____Primary
test byte [ecx - 0x24], 1
cmove eax, edx
push eax
push ecx
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ecx - 0x28]
sub eax, dword [ecx - 0x30]
push eax
mov eax, dword [ecx - 0x2c]
sub eax, dword [ecx - 0x34]
push eax
push dword [ecx - 0x28]
mov eax, dword [ecx - 0x38]
push dword [ecx - 0x2c]
sub eax, dword [ecx - 0x40]
push dword [ecx - 0x30]
push dword [ecx - 0x34]
push eax
mov eax, dword [ecx - 0x3c]
sub eax, dword [ecx - 0x44]
push eax
push dword [ecx - 0x38]
lea eax, [ebp - 0xb18]
push dword [ecx - 0x3c]
push dword [ecx - 0x40]
push dword [ecx - 0x44]
push dword [ecx - 0x48]
push str.___08X:__i__i__i__i___ix_i___Working:__i__i__i__i___ix_i___dpi:__s___s__s
push eax
call fcn.0040111a
mov ebx, dword [ebp - 0x1178]
lea eax, [ebp - 0xb18]
push esi
push 0
push edi
push eax
call ebx
mov edx, dword [ebp - 0x1168]
add esp, 0x58
mov eax, dword [ebp - 0x1170]
inc edx
mov ecx, dword [ebp - 0x116c]
add ecx, 0x88
mov dword [ebp - 0x1168], edx
mov dword [ebp - 0x116c], ecx
cmp edx, dword [eax + 0x1dc]
jb 0x402781
push esi
push 0
push edi
push str.Modules:
call ebx
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x424
mov dword [ebp - 0x1178], eax
lea eax, [ebp - 0x1160]
push 0
push eax
mov dword [ebp - 0x1164], 0x428
call fcn.004f5a90
mov eax, dword [ebp - 0x1178]
add esp, 0xc
test eax, eax
je 0x40298b
cmp eax, 0xffffffff
je 0x40298b
lea ecx, [ebp - 0x1164]
push ecx
push eax
call sub.KERNEL32.dll_Module32FirstW
jmp 0x402967
mov ecx, dword [ebp - 0x114c]
lea eax, [ebp - 0xf44]
push eax
push ecx
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0xb18]
add ecx, dword [ebp - 0x1150]
push ecx
push dword [ebp - 0x1150]
push str.___08X__08X__8X__s
push eax
call fcn.0040111a
push esi
push 0
lea eax, [ebp - 0xb18]
push edi
push eax
call ebx
add esp, 0x28
lea eax, [ebp - 0x1164]
push eax
push dword [ebp - 0x1178]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x402910
push dword [ebp - 0x1178]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40298b
xor esi, esi
inc esi
push esi
push esi
push dword [ebp + 0x10]
push str.LogStartEnv_failed__invalid_apStartEnv
call eax
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4166
leave
ret