Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x20], eax
push ebx
pop dword [0x404c2c]
mov ebx, dword [ebp + 0x10]
mov dword [0x404c10], ebx
mov ebx, dword [0x404c2c]
push 0x64
push 0x404b48
push 0x67
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x404c10]
xor ecx, ecx
mov word [eax + 0x10], cx
mov eax, dword [0x404c10]
mov dword [esp + 0x18], eax
cmp word [eax], 0x22
je 0x401072
nop
sub eax, 2
mov dword [0x404c10], eax
cmp word [eax], 0x22
jne 0x401060
mov dword [esp + 0x18], eax
lea ebx, [eax - 0x18]
mov dword [0x404c10], ebx
movzx eax, word [ebx]
cdq
mov esi, eax
mov edi, edx
mov ecx, esi
call fcn.004021a0
movzx eax, word [ebx + 2]
movaps xmm1, xmm0
cdq
shld edi, esi, 8
mov ebx, eax
mov dword [esp + 0x14], edx
shl esi, 8
add ebx, esi
movsd qword [esp + 0x28], xmm1
mov esi, edx
mov ecx, ebx
adc esi, edi
mov edx, esi
call fcn.004021a0
mov eax, dword [esp + 0x18]
shld esi, ebx, 8
movsd qword [esp + 0x30], xmm0
shl ebx, 8
movzx eax, word [eax - 0x14]
cdq
mov edi, eax
add edi, ebx
mov ebx, edx
mov ecx, edi
adc ebx, esi
mov edx, ebx
call fcn.004021a0
mov eax, dword [esp + 0x18]
shld ebx, edi, 8
movsd qword [esp + 0x38], xmm0
shl edi, 8
movzx eax, word [eax - 0x12]
cdq
mov esi, eax
add esi, edi
mov edi, edx
mov ecx, esi
adc edi, ebx
mov edx, edi
call fcn.004021a0
mov eax, dword [esp + 0x18]
shld edi, esi, 8
movsd qword [esp + 0x40], xmm0
shl esi, 8
movzx eax, word [eax - 0x10]
cdq
mov ebx, eax
add ebx, esi
mov esi, edx
mov ecx, ebx
adc esi, edi
mov edx, esi
call fcn.004021a0
mov eax, dword [esp + 0x18]
shld esi, ebx, 8
movsd qword [esp + 0x48], xmm0
shl ebx, 8
movzx eax, word [eax - 0xe]
cdq
mov edi, eax
add edi, ebx
mov ebx, edx
mov ecx, edi
adc ebx, esi
mov edx, ebx
call fcn.004021a0
mov eax, dword [esp + 0x18]
movsd qword [esp + 0x50], xmm0
shld ebx, edi, 8
movzx eax, word [eax - 0xc]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x18]
shl edi, 8
add ecx, edi
mov dword [esp + 0x24], ecx
movzx eax, word [eax - 0xa]
adc esi, ebx
mov dword [esp + 0x14], esi
shld esi, ecx, 8
cdq
shl ecx, 8
add ecx, eax
adc edx, esi
call fcn.004021a0
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x28]
mulsd xmm0, qword [0x4031f8]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mulsd xmm0, qword [esp + 0x30]
mulsd xmm0, qword [esp + 0x38]
mulsd xmm0, qword [esp + 0x40]
mulsd xmm0, qword [esp + 0x48]
mulsd xmm0, qword [esp + 0x50]
movsd qword [esp + 0x28], xmm0
call fcn.004021a0
movsd xmm1, qword [esp + 0x28]
mov ebx, dword [esp + 0x20]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mulsd xmm1, xmm0
push 0x64
movsd xmm0, qword [esp + 0x1c]
push 0x404a68
push 0x6d
mulsd xmm0, xmm1
push ebx
mulsd xmm0, xmm0
movsd qword [0x404c30], xmm0
call esi
mov eax, dword [0x404c30]
mov ecx, ebx
mov dword [0x404a64], eax
mov byte [esp + 0x13], 1
call fcn.00402390
mov eax, dword [0x404c34]
mov dword [0x4044a4], eax
sub dword [0x4044a4], 0x6397e0d0
setne byte [esp + 0x13]
push 0x64
push 0x404b48
push 0x67
push ebx
call esi
push 0x64
push 0x404b48
push 0x67
push ebx
call esi
mov ecx, ebx
call fcn.00402390
push 0
push ebx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x404b48
push 0x404a68
push 0
mov dword [0x404a60], ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x404b30], eax
test eax, eax
jne 0x4012bb
push eax
push 0x4044e9
push str.Write_your_notes_here
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0040138e
mov esp, ebp
pop ebp
ret 0x10
movzx eax, byte [esp + 0x13]
push dword [eax*4 + 0x4031f0]
push 1
push 0x1e
push 0x404420
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
add esp, 0x10
push 0
push 0x404452
push str.Text_should_be_here
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp + 0x14]
push dword [0x404b30]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x404b30]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x60]
push 0
push eax
call esi
test eax, eax
je 0x401376
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax + eax]
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x24]
push dword [esp + 0x60]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401365
lea eax, [esp + 0x58]
push eax
call edi
lea eax, [esp + 0x58]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x64]
push eax
call esi
test eax, eax
jne 0x401340
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x60]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040138e
mov esp, ebp
pop ebp
ret 0x10