Function at 0x406af4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
push esi
push ebx
mov eax, dword [ebp + 8]
mov dword [0x40e240], eax
mov dword [0x43cac0], 0x30
mov dword [0x43cac4], 3
mov dword [0x43cac8], 0x404d18
mov dword [0x43cacc], 0
mov dword [0x43cad0], 0
mov dword [0x43cad4], eax
add esp, 0xfffffff8
push 0x406a8f
push eax
call sub.USER32.dll_LoadIconA
mov dword [0x43cad8], eax
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
mov dword [0x43cadc], eax
mov dword [0x43cae0], 6
mov dword [0x43cae4], 0xc9
mov dword [0x43cae8], 0x40e230
push 0x406a95
push dword [0x40e240]
call sub.USER32.dll_LoadIconA
mov dword [0x43caec], eax
add esp, 0xfffffffc
push 0x43cac0
call sub.USER32.dll_RegisterClassExA
add esp, 0xc
test ax, ax
jne 0x406bc0
push 0x1030
push 0x4044b2
push 0x406a9b
jmp 0x406dc5
mov dword [0x40e008], 0
add esp, 0xfffffff8
push 0x401452
push 0x4040bf
call sub.msvcrt.dll_fopen
mov edx, eax
mov dword [0x43cc8c], edx
add esp, 0x10
test edx, edx
jne 0x406c30
mov dword [ebp - 0x10c], 0x14
mov dword [ebp - 0x110], 0x14
mov dword [ebp - 0x108], 0x258
mov dword [ebp - 0x104], 0x190
mov byte [0x43c7a0], 0
mov dword [0x43cc84], 0x4e3
lea edi, [ebp - 0x100]
jmp 0x406d40
add esp, 0xfffffff8
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0x406ab7
push edx
call sub.msvcrt.dll_fscanf
add esp, 0x20
cmp eax, 4
jne 0x406cbe
add esp, 0xfffffff4
push 0
call sub.USER32.dll_GetSystemMetrics
add eax, eax
add esp, 0xc
cmp dword [ebp - 0x110], eax
jg 0x406cbe
add esp, 0xfffffff4
push 0
call sub.USER32.dll_GetSystemMetrics
add eax, eax
add esp, 0xc
cmp dword [ebp - 0x108], eax
jg 0x406cbe
add esp, 0xfffffff4
push 1
call sub.USER32.dll_GetSystemMetrics
add eax, eax
add esp, 0xc
cmp dword [ebp - 0x10c], eax
jg 0x406cbe
add esp, 0xfffffff4
push 1
call sub.USER32.dll_GetSystemMetrics
add eax, eax
add esp, 0xc
cmp dword [ebp - 0x104], eax
jle 0x406ce6
mov dword [ebp - 0x10c], 0x14
mov dword [ebp - 0x110], 0x14
mov dword [ebp - 0x108], 0x258
mov dword [ebp - 0x104], 0x190
xor ebx, ebx
mov esi, 0x43c7a0
lea edi, [ebp - 0x100]
jmp 0x406cf6
inc ebx
cmp ebx, 0x31
jg 0x406d13
add esp, 0xfffffff4
push dword [0x43cc8c]
call sub.msvcrt.dll_fgetc
mov byte [ebx + esi], al
add esp, 0x10
cmp al, 0x23
jne 0x406cf5
mov byte [ebx + esi], 0
add esp, 0xfffffffc
push 0x43cc84
push 0x40146a
push dword [0x43cc8c]
call sub.msvcrt.dll_fscanf
add esp, 0xfffffff4
push dword [0x43cc8c]
call sub.msvcrt.dll_fclose
add esp, 0x20
add esp, 0xfffffff8
push 0x43c7a0
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push dword [0x43cc84]
push 0x406ac5
push edi
call sub.USER32.dll_wsprintfA
add esp, 0x20
push 0
push dword [0x40e240]
push 0
push 0
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x104]
sub eax, ecx
push eax
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x108]
sub eax, edx
push eax
push ecx
push edx
push 0x2cf0000
push 0x40e248
push str.MyWindowClass
push 0x200
call sub.USER32.dll_CreateWindowExA
mov dword [0x43c780], eax
test eax, eax
jne 0x406dd3
push 0x1030
push 0x4044b2
push 0x406ad5
push 0
call sub.USER32.dll_MessageBoxA
xor eax, eax
jmp 0x406eab
add esp, 0xfffffff8
push 0x270f
push dword [0x40e240]
call sub.USER32.dll_LoadAcceleratorsA
mov dword [0x43c798], eax
push dword [ebp + 0x14]
push dword [0x43c780]
call sub.USER32.dll_ShowWindow
add esp, 0xfffffffc
push dword [0x43c780]
call sub.USER32.dll_UpdateWindow
add esp, 0xc
mov esi, 0x43c7a0
mov edi, 0x403cee
mov ecx, 7
cld
test al, 0
repe cmpsb byte [esi], byte es:[edi]
je 0x406e92
add esp, 0xfffffff8
push 0
add esp, 0xfffffff4
push dword [0x43c780]
call sub.USER32.dll_GetMenu
add esp, 0xc
push eax
call sub.USER32.dll_GetSubMenu
add esp, 0xfffffffc
push 0x43c7a0
push 0xcd
push 0
push 0x2371
push eax
call sub.USER32.dll_InsertMenuA
jmp 0x406e8f
add esp, 0xfffffffc
push 0x43caf0
push dword [0x43c798]
push dword [0x43c780]
call sub.USER32.dll_TranslateAcceleratorA
add esp, 4
test eax, eax
jne 0x406e92
add esp, 0xfffffff4
push 0x43caf0
call sub.USER32.dll_TranslateMessage
push 0x43caf0
call sub.USER32.dll_DispatchMessageA
add esp, 0xc
push 0
push 0
push 0
push 0x43caf0
call sub.USER32.dll_GetMessageA
test eax, eax
jne 0x406e58
mov eax, dword [0x43caf8]
lea esp, [ebp - 0x128]
pop ebx
pop esi
pop edi
leave
ret 0x10