Function at 0x401047
Capabilities:
Create process on windows
Get disk information
Resolve function by parsing pe exports
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94c
mov eax, dword [0x45e01c]
xor eax, esp
mov dword [esp + 0x948], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x10
pop ebx
push 1
xor esi, esi
push esi
push esi
mov dword [esp + 0x48], eax
mov dword [0x460188], eax
lea eax, [esp + 0x134]
push eax
push str.open
push esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetLayeredWindowAttributes
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add dword [0x460184], 0x7d
lea eax, [esp + 0xc0]
push str.ID_GUID
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
pop ecx
pop ecx
lea eax, [esp + 0xc0]
push eax
call edi
lea eax, [esp + 0xc0]
push eax
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_FindWindowExA]
dec ebx
mov dword [esp + 0x38], eax
jne 0x4010dc
lea eax, [esp + 0x338]
push eax
call edi
mov ebx, dword [0x460184]
push esi
push dword [esp + 0x3c]
mov dword [0x460184], 0x286
call dword [sym.imp.USER32.dll_GetSystemMenu]
push esi
push 0xf060
push eax
call dword [sym.imp.USER32.dll_DeleteMenu]
push esi
push str.Notepad
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
lea eax, [esp + 0x338]
push eax
push edi
mov dword [0x46018c], esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x80000
push 0xffffffffffffffec
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
test eax, eax
je 0x401163
mov dword [esp + 0x28], esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0x7f000000
mov edi, eax
push esi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x138], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_DdeInitializeA]
test eax, eax
mov eax, dword [esp + 0x18]
je 0x40119e
mov eax, dword [esp + 0x40]
mov dword [esp + 0x128], 1
mov dword [esp + 0x14], eax
cmp eax, esi
jne 0x4011b5
mov dword [esp + 0x14], edi
mov byte [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov dword [0x460198], eax
cmp eax, esi
je 0x4020f4
mov dword [esp + 0x34], ebx
cmp dword [0x460180], esi
jne 0x4011df
movzx eax, bl
inc eax
mov dword [esp + 0x28], eax
mov ebx, dword [ebp + 0x14]
movzx ecx, di
mov dword [esp + 0x1c], esi
cmp ecx, esi
jle 0x401217
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xb4]
add eax, ebx
dec edx
imul eax, edx
cmp eax, esi
je 0x40120d
cmp byte [esp + 0x1c], 0
jne 0x40120d
inc dword [esp + 0x28]
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], ecx
jl 0x4011fe
lea eax, [esp + 0x40]
add edi, 0x1f5
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [esp + 0x40]
call dword [sym.imp.USER32.dll_GetMenu]
push dword [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov eax, dword [esp + 0x3c]
push 0x103
mov dword [esp + 0x18], eax
lea eax, [esp + 0x235]
push esi
push eax
mov dword [0x460190], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], esi
mov byte [esp + 0x23c], 0
call fcn.00402420
xor eax, eax
mov dword [esp + 0xbc], esi
lea edi, [esp + 0xc0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
lea eax, [esp + 0xb0]
push eax
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x1c], eax
cmp eax, esi
je 0x4012cf
mov eax, dword [0x460180]
sub eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
imul eax, ebx
add ecx, 4
imul ecx, ebx
lea eax, [eax + eax - 0xc]
mov dword [esp + 0x24], ecx
mov dword [0x460184], eax
jmp 0x4012d3
inc dword [esp + 0x28]
push esi
push esi
push 0x31
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x18], eax
call ebx
cmp dword [esp + 0x10], eax
jbe 0x401310
mov eax, dword [0x460194]
mov edi, dword [esp + 0x28]
add eax, eax
mov dword [0x460180], eax
mov eax, dword [0x46018c]
mov dword [esp + 0x24], eax
jmp 0x401387
mov eax, dword [esp + 0xb8]
sub eax, dword [esp + 0xb0]
push eax
lea eax, [esp + 0x12c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.SHLWAPI.dll_PathCompactPathA]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
imul eax, edi
cdq
sub eax, edx
sar eax, 1
add dword [0x460180], eax
lea eax, [esp + 0x338]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [0x460180]
push dword [esp + 0x1c]
lea eax, [edi + 4]
imul eax, edi
lea eax, [eax + ecx*2]
push esi
mov dword [0x460184], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [esp + 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.WinSCard.dll_SCardGetAttrib]
mov dword [esp + 0x18], eax
push edi
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x18]
inc ecx
cmp eax, ecx
mov ecx, dword [0x460180]
mov dword [esp + 0x1c], eax
je 0x4013cf
mov edx, dword [esp + 0x34]
mov eax, ecx
sub eax, edx
imul eax, dword [esp + 0x24]
sub eax, 4
mov dword [0x460184], eax
cmp ecx, eax
jg 0x4013c1
neg edi
mov dword [esp + 0x14], edi
lea eax, [edx + 1]
imul eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
jmp 0x4013f1
cmp ecx, dword [0x460184]
jge 0x4013db
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x24]
add eax, 0xfffffffc
mov dword [0x460184], eax
cmp ecx, eax
jg 0x4013f1
neg edi
mov dword [esp + 0x14], edi
lea eax, [esp + 0x338]
push eax
lea eax, [esp + 0x234]
push eax
call fcn.00402320
mov edi, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [esp + 0xb0]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0xb8]
sub ecx, dword [esp + 0xb0]
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x234]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCompactPathA]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x38]
jbe 0x40146b
mov eax, dword [esp + 0x10]
mov dword [0x460194], eax
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 1]
imul ecx, eax
add ecx, dword [esp + 0x20]
mov dword [0x460184], ecx
lea eax, [esp + 0x230]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x460184]
mov dword [esp + 0x28], eax
mov eax, dword [0x460190]
mov dword [esp + 0x14], esi
cmp eax, dword [0x46018c]
jbe 0x40156f
mov eax, dword [esp + 0x30]
imul eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], eax
cmp eax, esi
jle 0x40156f
cmp dword [0x46018c], esi
jne 0x401501
mov eax, 0x100
push eax
lea ecx, [esp + 0x434]
push ecx
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x28]
push ecx
push esi
push eax
lea eax, [esp + 0x548]
push eax
lea eax, [esp + 0x654]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40150d
mov eax, dword [0x460198]
mov dword [esp + 0x14], eax
jmp 0x40150d
inc dword [esp + 0x28]
cmp dword [0x460194], esi
jne 0x40156f
cmp dword [0x460198], esi
je 0x40156f
mov eax, dword [esp + 0x30]
cdq
and edx, 0xf
lea edi, [edx + eax]
sar edi, 4
mov dword [esp + 0x10], esi
cmp edi, esi
jle 0x401549
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x14], esi
je 0x4020f4
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edi
jl 0x40152b
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x28], eax
jne 0x401559
inc dword [0x460184]
inc dword [esp + 0x24]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], esi
cmp eax, dword [esp + 0x18]
jl 0x4014ba
cmp dword [esp + 0x30], esi
je 0x401589
cmp dword [0x460190], esi
je 0x401589
mov eax, dword [esp + 0x20]
inc eax
imul eax, eax, 0xa
mov dword [esp + 0x2c], eax
push 0x2c
lea eax, [esp + 0x54]
push esi
push eax
call fcn.00402420
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x18], eax
cmp eax, esi
jne 0x4015df
lea eax, [esp + 0x128]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x44]
call fcn.00402150
push 0x45c498
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], vtable.std::runtime_error.0
call fcn.004173e0
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push eax
call edi
push 0x5a
push dword [esp + 0x1c]
call edi
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x460180]
mov edi, dword [0x460184]
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x2c
mov dword [esp + 0x14], eax
lea eax, [esp + 0x54]
push esi
push eax
call fcn.00402420
add esp, 0xc
push 0x18
pop eax
mov word [esp + 0x5e], ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
xor eax, eax
push esi
inc eax
push esi
mov word [esp + 0x64], ax
lea eax, [esp + 0x130]
push eax
push esi
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x24]
neg edi
mov dword [esp + 0x68], 0x28
mov dword [esp + 0x70], edi
mov dword [esp + 0x78], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
call dword [sym.imp.GDI32.dll_GdiFlush]
lea eax, [esp + 0x10]
push eax
push esi
push esi
push esi
push 1
push 0x41a600
push 0x41a610
call dword [sym.imp.ole32.dll_OleCreate]
test eax, eax
jne 0x4016d2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
push 1
push dword [esp + 0x14]
call dword [sym.imp.ole32.dll_OleSetContainedObject]
mov eax, 0x12c
push eax
push eax
push esi
push esi
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push dword [esp + 0x44]
push 0xffffffffffffffff
push esi
push esi
push 0xfffffffffffffffb
push eax
call dword [ecx + 0x2c]
push str.Heap
lea eax, [esp + 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x18], esi
cmp dword [0x460190], esi
je 0x4016ff
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
jmp 0x401708
push 1
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea edx, [eax + 2]
mov dword [esp + 0x24], 1
xor eax, eax
mov dword [esp + 0x14], esi
dec edx
je 0x401748
lea edi, [ecx + 0x10]
imul edi, dword [esp + 0x24]
cmp dword [esp + 0x14], 2
mov dword [esp + 0x24], edi
jne 0x40173d
lea eax, [ecx + 1]
shl eax, 4
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 3
jl 0x401721
mov ecx, dword [esp + 0x24]
mov edi, ecx
imul ecx, ecx, 0x2df
shl eax, 2
imul edi, edi, 0xcc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
cmp eax, dword [esp + 0x20]
jle 0x401782
push str.Create
lea eax, [esp + 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x104
lea eax, [esp + 0x744]
push esi
push eax
call fcn.00402420
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x10], eax
jle 0x4017af
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x20], esi
jge 0x4017c1
mov eax, dword [esp + 0x3c]
jmp 0x4017cc
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x430]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x38]
add ecx, dword [0x46018c]
mov edx, dword [esp + 0x40]
imul ecx, dword [0x460190]
add edx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
cmp edx, ecx
jne 0x401807
mov eax, dword [0x460180]
add dword [0x460184], eax
push dword [esp + 0x1c]
push edi
push dword [esp + 0x1c]
call dword [esp + 0x1c]
mov ecx, dword [0x460180]
mov edx, ecx
sub edx, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [0x460184]
add edx, eax
cmp edx, dword [0x460198]
jle 0x401839
inc eax
mov dword [0x460184], eax
cmp dword [esp + 0x10], esi
je 0x4020f4
push eax
push esi
push ecx
push dword [0x460194]
push dword [esp + 0x4c]
push esi
push dword [esp + 0x38]
push eax
push ecx
push dword [esp + 0x58]
push dword [esp + 0x50]
push 0x10000000
call dword [sym.imp.COMCTL32.dll_CreateUpDownControl]
mov ecx, dword [0x460190]
mov dword [esp + 0x14], eax
mov eax, ecx
sar eax, 8
lea edx, [eax*4 + 3]
mov dword [esp + 0x24], 1
lea edi, [eax + eax + 2]
cmp dword [esp + 0x14], esi
jne 0x401896
mov edi, dword [esp + 0x24]
inc eax
imul eax, edi
shl eax, 5
cmp dword [esp + 0x20], esi
jne 0x4018a6
imul edx, eax
cmp ecx, esi
je 0x4018ba
push edx
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], esi
je 0x4018ca
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x46018c]
mov esi, dword [sym.imp.UxTheme.dll_GetThemeSysFont]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
mov edi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
mov eax, dword [0x46018c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x50]
push eax
push dword [0x460184]
push dword [esp + 0x48]
call esi
lea eax, [esp + 0x50]
push eax
call edi
push eax
push dword [esp + 0x14]
call ebx
cmp dword [esp + 0x20], 0
je 0x401ccf
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebx
jmp 0x401cd9
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov ebx, eax
mov esi, dword [0x460190]
xor eax, eax
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x18], eax
test esi, esi
jle 0x401d04
mov edx, ecx
and edx, 0x80000003
jns 0x401cfc
dec edx
or edx, 0xfffffffc
inc edx
jne 0x401cff
inc edi
inc ecx
cmp ecx, esi
jl 0x401ced
mov ecx, dword [0x46018c]
mov edx, edi
sub edx, ecx
cmp edx, dword [esp + 0x2c]
jle 0x401d38
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp edx, dword [esp + 0x30]
je 0x401d3c
lea eax, [edx + 3]
imul eax, dword [esp + 0x30]
add eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x401d3c
and dword [esp + 0x2c], eax
add edi, esi
cmp edi, dword [0x460198]
je 0x401d7a
mov dword [esp + 0x10], eax
mov edi, 0x45a160
test eax, eax
je 0x401d80
dec dword [esp + 0x10]
mov dl, byte [edi]
mov byte [ebx], dl
test ecx, ecx
jne 0x401d62
inc ebx
jmp 0x401d68
mov ebx, dword [0x460180]
lea edx, [ecx + 1]
add edi, edx
cmp esi, ecx
jle 0x401d80
cmp dword [esp + 0x10], 0
jne 0x401d53
jmp 0x401d80
mov ecx, dword [esp + 0x28]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
add ecx, 0x72
xor esi, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
cmp eax, ebx
jle 0x401e59
and dword [esp + 0x14], ebx
mov eax, dword [0x460194]
mov dword [esp + 0x24], ecx
push 0
inc eax
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov cl, byte [esp + 0x30]
sub cl, byte [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x10]
mov al, bl
add al, byte [esp + 0x30]
mov edi, dword [0x46018c]
add al, 4
imul cl
imul byte [esp + 0x2c]
mov ecx, dword [esp + 0x40]
xor al, byte [ecx]
cmp dword [esp + 0x2c], 0
lea edx, [esp + edx + 0x34]
mov byte [edx + edi], al
mov eax, dword [0x460194]
mov dl, byte [esp + 0x1c]
mov byte [esp + eax + 0x35], dl
je 0x401e07
mov dl, byte [esp + 0x34]
jmp 0x401e0f
mov edx, dword [esp + 0x10]
mov dl, byte [esp + edx + 0x35]
imul esi, dword [esp + 0x30]
mov byte [ecx], dl
cmp ebx, dword [esp + 0x2c]
jl 0x401e2e
sub esi, dword [esp + 0x2c]
sub esi, edi
add esi, dword [esp + 0x10]
add esi, ebx
mov dword [esp + 0x30], esi
jmp 0x401e3f
mov ecx, dword [esp + 0x14]
add ecx, edi
imul ecx, dword [esp + 0x2c]
sub ecx, esi
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0x24]
add dword [esp + 0x14], 3
sub esi, eax
inc ebx
dec dword [esp + 0x24]
cmp ebx, dword [esp + 0x18]
jl 0x401da8
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push str.uxtheme.dll
mov dword [ecx + 1], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.IsThemeActive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x40]
push eax
push 0
push 0x1328
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x40]
push eax
push edi
call esi
lea eax, [esp + 0x48]
push eax
push edi
call esi
mov eax, dword [esp + 0x28]
push dword [esp + 0x20]
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov dword [esp + 0x18], eax
test eax, eax
jg 0x401edc
and dword [esp + 0x28], 0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
cmp dword [esp + 0x18], edi
jle 0x4020db
push 0x30
pop esi
push 0x400
push ebx
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_GetMenuState]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4020d0
push ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_GetMenuItemID]
cmp eax, 0xffffffff
jne 0x401f4e
lea eax, [esp + 0x50]
push eax
push 1
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 2
mov dword [esp + 0x88], edi
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test eax, eax
je 0x4020d0
push ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x40], edi
jne 0x4020d0
cmp dword [esp + 0x28], edi
jne 0x402061
push 0x418
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x401ff3
push 0x400
push 0
lea eax, [esp + 0x538]
push eax
push ebx
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_GetMenuStringA]
test eax, eax
jle 0x401fc5
push 2
add eax, 0x18
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
lea eax, [esp + 0x530]
push eax
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401fc9
mov byte [edi + 0x14], 0
xor eax, eax
cmp dword [esp + 0x10], eax
je 0x401fda
mov dword [edi + 0x10], 1
jmp 0x401fdd
mov dword [edi + 0x10], eax
test dword [esp + 0x14], 0x800
je 0x401ff3
cmp dword [edi + 0x10], eax
jne 0x401ff3
mov dword [edi + 0xc], 1
push esi
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00402420
add esp, 0xc
lea eax, [esp + 0x50]
push eax
push 1
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0x10
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test eax, eax
jne 0x402034
push esi
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00402420
add esp, 0xc
or dword [esp + 0x58], 0x100
lea eax, [esp + 0x50]
push eax
push 1
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x80], edi
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
xor edi, edi
jmp 0x4020d0
xor al, al
je 0x4020d0
lea eax, [esp + 0x50]
push eax
push 1
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x88], edi
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test eax, eax
je 0x4020d0
cmp dword [esp + 0x70], edi
je 0x4020d0
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test dword [esp + 0x58], 0x100
mov dword [esp + 0x50], esi
je 0x4020b0
and dword [esp + 0x58], 0xfffffeff
lea eax, [esp + 0x50]
push eax
push 1
push ebx
push dword [esp + 0x2c]
mov dword [esp + 0x88], edi
mov dword [esp + 0x80], edi
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
inc ebx
cmp ebx, dword [esp + 0x18]
jl 0x401ef4
push edi
push dword [esp + 0x20]
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EnumFontsA]
jmp 0x4020f6
xor eax, eax
mov ecx, dword [esp + 0x954]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00402110
mov esp, ebp
pop ebp
ret 0x10