Function at 0x401e40
Capabilities:
Create thread
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov esi, dword [ebp + 8]
push 0
push 0x4011e0
push 0
push 0x65
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x4225ec], eax
test eax, eax
jne 0x401e87
push 0x30
push str.Fatal_Error
push str.Main_Window_Creation_Failed_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x67
push esi
call ebx
push eax
push 0xfffffffffffffff2
push dword [0x4225ec]
call dword [sym.imp.USER32.dll_SetClassLongA]
push 0x28
call fcn.004049cb
mov ecx, dword [0x4225ec]
mov esi, eax
add esp, 4
mov dword [esi], ecx
lea ecx, [esi + 0x10]
push ecx
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
xorps xmm0, xmm0
push 0x401670
push 0xfffffffffffffffc
push 0x3e9
push dword [0x4225ec]
mov dword [0x4225f0], esi
mov dword [ebp - 0x38], 0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
call edi
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
push eax
call esi
push 0x401670
push 0xfffffffffffffffc
push 0x3ea
push dword [0x4225ec]
mov dword [0x4223ec], eax
call edi
push eax
call esi
push 0x20
push 0
push 0x1036
push 0x3e9
push dword [0x4225ec]
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call esi
push 0x20
push 0
push 0x1036
push 0x3ea
push dword [0x4225ec]
call edi
push eax
call esi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0xf
push eax
push 0
push 0x101b
push 0x3e9
push dword [0x4225ec]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x116
mov dword [ebp - 0x3c], str.Processes
mov dword [ebp - 0x34], 0
call edi
push eax
call esi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], str.Libraries
push eax
push 0
push 0x101b
push 0x3ea
push dword [0x4225ec]
call edi
push eax
call esi
push 0
push 0
push 0
push 0x402d80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, str.Interface_Loaded.
call fcn.00403580
call fcn.00403770
push 0x1fc
push 0
push 0x4223f0
call fcn.00405d00
mov eax, dword [0x4225ec]
add esp, 0xc
mov dword [0x4223f0], 0x1fc
mov dword [0x4223f4], eax
mov dword [0x4223f8], 0x7531
push 0x67
push 0
mov dword [0x422400], 0x837f
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
movups xmm0, xmmword [0x41ec14]
mov dword [0x422404], eax
mov ax, word [0x41ec24]
push 0x4223f0
push 0
movups xmmword [0x422408], xmm0
mov word [0x422418], ax
mov dword [0x4223fc], 7
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0
push dword [0x4225ec]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4225ec]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x1c]
push 0
push 0
push 0
push eax
call ebx
test eax, eax
jle 0x4020cc
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
nop dword [eax]
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
test eax, eax
jg 0x4020b0
mov edi, dword [0x4225f0]
mov dword [0x4218c0], 0
test edi, edi
je 0x402171
lea ebx, [edi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
je 0x40210d
mov ecx, dword [esi]
test ecx, ecx
je 0x402102
push ecx
call fcn.004043c0
add esi, 4
cmp esi, dword [edi + 8]
jne 0x4020f6
mov esi, dword [edi + 4]
push ebx
mov dword [edi + 8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [edi + 4]
test eax, eax
je 0x402166
mov ecx, dword [edi + 0xc]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x402147
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40218d
mov eax, edx
push ecx
push eax
call fcn.004049fb
mov dword [edi + 4], 0
add esp, 8
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
push 0x28
push edi
call fcn.004049fb
add esp, 8
mov eax, dword [0x4223e8]
pop edi
pop ebx
test eax, eax
je 0x402183
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.00409c24
int3