Function at 0x1004e7c
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x101e4ac]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x234]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x22c]
sub eax, dword [ebp - 0x234]
mov esi, dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov dword [0x101fa10], eax
mov eax, dword [ebp - 0x228]
sub eax, dword [ebp - 0x230]
mov dword [0x101fa14], eax
call esi
movzx eax, ax
lea eax, [eax + eax*2]
push 4
cdq
pop ecx
idiv ecx
mov dword [0x101fa18], eax
call esi
movzx eax, ax
shl eax, 1
push 4
cdq
pop ecx
idiv ecx
mov dword [0x101fa1c], eax
call esi
shr eax, 0x10
lea eax, [eax + eax*4]
shl eax, 1
push 8
cdq
pop ecx
idiv ecx
mov dword [0x101fa20], eax
call esi
movzx eax, ax
imul eax, eax, 0xd
push 4
cdq
pop ecx
idiv ecx
mov dword [0x101fa2c], eax
call esi
shr eax, 0x10
shl eax, 1
push 8
cdq
pop ecx
idiv ecx
mov ecx, 0x101fa78
mov dword [0x101fa30], eax
call fcn.01004af0
mov dword [0x101f9e4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0x2d
mov dword [0x101f9e8], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, dword [sym.imp.GDI32.dll_CreateRectRgn]
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [0x101fa24], eax
call edi
push esi
push esi
push esi
push esi
mov dword [0x101fa34], eax
call edi
push 5
mov dword [0x101fa38], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
test byte [0x101fd04], 4
mov dword [0x101fa3c], eax
je 0x1004fa3
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x64
push ebx
push esi
push 0x54000100
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowW]
cmp eax, esi
mov dword [0x101f9ec], eax
jne 0x1004fc2
xor eax, eax
jmp 0x1005226
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0x58
push eax
mov dword [ebp - 0x210], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push dword [ebp - 0x210]
mov edi, eax
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [edi + edi*4]
mov dword [ebp - 0x210], eax
cdq
push 4
pop ecx
idiv ecx
or dword [ebp - 0x218], 0xffffffff
mov dword [ebp - 0x224], edi
mov ecx, eax
mov eax, dword [ebp - 0x210]
cdq
sub eax, edx
add ecx, edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
sar eax, 1
add eax, ecx
mov dword [ebp - 0x21c], eax
mov eax, dword [0x101f9ec]
cmp eax, esi
mov dword [ebp - 0x220], ecx
je 0x1005040
lea ecx, [ebp - 0x224]
push ecx
push 4
push 0x404
push eax
call edi
push 0x6b
push dword [0x101f9f0]
call dword [sym.imp.USER32.dll_LoadIconW]
cmp eax, esi
je 0x100505d
push eax
push 1
push 0x80
push ebx
call edi
push esi
push esi
push 0x404
push dword [0x101fa08]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x1b
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [0x101f9ec]
mov dword [0x101fa28], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x3e8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [0x101fa48], esi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], esi
jle 0x1005160
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax*4 + 0x101fa4c]
push dword [ebp - 0x210]
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x100513a
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax*4 + 0x101fa4c]
mov eax, dword [ecx]
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [eax + 0x10]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x260], 1
push 0x133e
push dword [ebp - 0x210]
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x250], 0x104
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x248], esi
call edi
jmp 0x1005148
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
cmp eax, dword [0x101fa48]
jl 0x10050ad
call fcn.01003b76
mov eax, dword [0x101fa9c]
cmp eax, esi
jl 0x1005176
cmp eax, dword [0x101fa48]
jl 0x100517d
xor eax, eax
mov dword [0x101fa9c], eax
push esi
push eax
push 0x130c
push 0x3e8
push dword [0x101f9e4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
mov eax, dword [0x101fa9c]
mov ecx, dword [eax*4 + 0x101fa4c]
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x238]
sub eax, dword [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x23c]
sub eax, dword [ebp - 0x244]
push eax
push esi
push dword [0x101f9e4]
call fcn.01003f99
mov eax, dword [0x101fa7c]
cmp eax, esi
je 0x10051f5
push esi
push eax
push esi
push dword [0x101f9e4]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [0x101f9e4]
call fcn.01004d8f
cmp byte [0x101f9f8], 1
ja 0x1005223
push dword [0x101f9e4]
call dword [sym.imp.USER32.dll_GetMenu]
push 1
push 0x9c53
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01013809
leave
ret 4