Function at 0x53a410
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x10], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ecx + 0x15da578], 0
mov dword [ebp - 0x74], 0x30
mov dword [ebp - 0x70], 0xb
mov dword [ebp - 0x6c], 0x53aeb0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 4
mov edx, dword [0x15da920]
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], 0
mov eax, dword [0x15da814]
mov dword [ebp - 0x58], eax
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0x71fcd0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov word [ebp - 4], ax
movzx edx, word [ebp - 4]
test edx, edx
jne 0x53a4a2
jmp 0x53a789
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
cmp dword [edx + ecx + 0xe], 0
jne 0x53a4d4
call fcn.00536560
mov dword [0x15da550], eax
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [0x15da550]
mov dword [edx + ecx + 0xe], eax
jmp 0x53a4e9
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0xe]
mov dword [0x15da550], ecx
push 0xb4
mov edx, dword [0x15da920]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov dword [ebp - 0x24], eax
push 0
push 0x539610
mov eax, dword [0x15da934]
push eax
push 0xdf
mov ecx, dword [0x15da920]
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [ebp - 0xc], eax
push 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
test eax, eax
je 0x53a769
call fcn.0049e220
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x53a56c
push 0
push 0
push 0x400
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.0049bdd0
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x53a58b
cmp dword [ebp - 8], 0xffffffff
jne 0x53a590
jmp 0x53a769
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 2
je 0x53a5a4
cmp dword [ebp - 0x14], 0x10
je 0x53a5a4
jmp 0x53a5ab
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp - 8], 0
je 0x53a5b7
cmp dword [ebp - 8], 0xffffffff
jne 0x53a5bc
jmp 0x53a769
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x100
je 0x53a5e0
cmp dword [ebp - 0x18], 0x101
je 0x53a5e0
jmp 0x53a6e6
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.0049be40
mov eax, 1
imul ecx, eax, 0xcb
movzx edx, byte [ecx + 0xe5daa0]
test edx, edx
jne 0x53a6dd
mov eax, 1
imul ecx, eax, 0xcd
movzx edx, byte [ecx + 0xe5daa0]
test edx, edx
jne 0x53a6dd
mov eax, 1
imul ecx, eax, 0xc8
movzx edx, byte [ecx + 0xe5daa0]
test edx, edx
jne 0x53a6dd
mov eax, 1
imul ecx, eax, 0xd0
movzx edx, byte [ecx + 0xe5daa0]
test edx, edx
jne 0x53a6dd
mov eax, 1
imul ecx, eax, 0xc7
movzx edx, byte [ecx + 0xe5daa0]
test edx, edx
jne 0x53a6dd
mov eax, 1
imul ecx, eax, 0xcf
movzx edx, byte [ecx + 0xe5daa0]
test edx, edx
jne 0x53a6dd
mov eax, 1
imul ecx, eax, 0xd3
movzx edx, byte [ecx + 0xe5daa0]
test edx, edx
jne 0x53a6dd
mov eax, 1
imul ecx, eax, 0xd1
movzx edx, byte [ecx + 0xe5daa0]
test edx, edx
jne 0x53a6dd
mov eax, 1
imul ecx, eax, 0xd2
movzx edx, byte [ecx + 0xe5daa0]
test edx, edx
jne 0x53a6dd
mov eax, 1
imul ecx, eax, 0xc9
movzx edx, byte [ecx + 0xe5daa0]
test edx, edx
je 0x53a6e4
mov dword [ebp - 0x10], 1
jmp 0x53a6f0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [ebp - 0x10], 0
jne 0x53a764
mov dword [ebp - 0x20], 1
cmp dword [0x15da568], 0
jne 0x53a732
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x53a725
mov dword [ebp - 0x1c], 1
jmp 0x53a72c
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x53a764
cmp dword [ebp - 0xc], 0
je 0x53a750
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x53a764
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x53a52c
movzx eax, word [ebp - 4]
and eax, 0xffff
movzx ecx, ax
mov dword [ebp - 0x28], ecx
mov edx, dword [0x15da920]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_UnregisterClassA]
mov esp, ebp
pop ebp
ret