Function at 0x5ae270
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
jmp 0x5ae92e
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebp - 0x1c]
and ecx, 1
test ecx, ecx
je 0x5ae397
mov edx, dword [ebp - 0x18]
and edx, 0xffff
mov dword [ebp - 0x78], edx
jmp 0x5ae39e
mov dword [ebp - 0x78], 0xa
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x14], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
mov word [0x5b8e10], 0
mov word [0x5b8b08], 0
cmp dword [ebp + 0xc], 0
jne 0x5ae3f0
mov ecx, dword [ebp + 8]
call fcn.005af4d0
test eax, eax
jne 0x5ae3f0
xor eax, eax
jmp 0x5ae933
push 0x104
push 0x5b8c7c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5ae40f
xor eax, eax
jmp 0x5ae933
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.005af530
test eax, eax
jne 0x5ae439
push 0
push 0x5b8b7c
push 0x5b52d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x5ae933
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp + 0x10]
mov dword [0x5b8c1c], eax
call fcn.005b1310
test eax, eax
je 0x5ae57d
mov word [0x5b8e10], 1
mov dword [0x5b8df8], 1
mov ecx, dword [0x5b8e14]
and ecx, 3
test ecx, ecx
jne 0x5ae491
mov edx, dword [0x5b8e14]
or edx, 3
mov dword [0x5b8e14], edx
mov eax, dword [0x5b8d80]
xor eax, 3
mov dword [0x5b8d80], eax
mov ecx, dword [0x5b8e14]
and ecx, 0x70
test ecx, ecx
jne 0x5ae4ba
mov edx, dword [0x5b8e14]
or edx, 0x70
mov dword [0x5b8e14], edx
mov eax, dword [0x5b8d80]
xor eax, 0x70
mov dword [0x5b8d80], eax
mov ecx, dword [0x5b8e14]
and ecx, 0xa00
test ecx, ecx
jne 0x5ae4e8
mov edx, dword [0x5b8e14]
or dh, 0xa
mov dword [0x5b8e14], edx
mov eax, dword [0x5b8d80]
xor eax, 0xa00
mov dword [0x5b8d80], eax
mov ecx, dword [0x5b8e14]
and ecx, 0xe000
test ecx, ecx
jne 0x5ae516
mov edx, dword [0x5b8e14]
or dh, 0xe0
mov dword [0x5b8e14], edx
mov eax, dword [0x5b8d80]
xor eax, 0xe000
mov dword [0x5b8d80], eax
mov ecx, dword [0x5b8e14]
and ecx, 0x60000
test ecx, ecx
jne 0x5ae547
mov edx, dword [0x5b8e14]
or edx, 0x60000
mov dword [0x5b8e14], edx
mov eax, dword [0x5b8d80]
xor eax, 0x60000
mov dword [0x5b8d80], eax
mov ecx, dword [0x5b8e14]
and ecx, 0x200000
test ecx, ecx
jne 0x5ae578
mov edx, dword [0x5b8e14]
or edx, 0x200000
mov dword [0x5b8e14], edx
mov eax, dword [0x5b8d80]
xor eax, 0x200000
mov dword [0x5b8d80], eax
jmp 0x5ae899
mov dword [0x5b8df8], 0
mov ecx, 1
call fcn.005b11b0
xor ecx, ecx
mov cx, word [0x5b8b08]
and ecx, 0xc000
test ecx, ecx
jne 0x5ae5d1
xor edx, edx
mov dx, word [0x5b8b08]
and edx, 0x1000
test edx, edx
je 0x5ae5d1
push 0
push 0x8003
push 0x111
mov eax, dword [0x5b8c38]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x5ae5d6
call fcn.005aeca0
cmp dword [0x5b5250], 0
je 0x5ae5f5
mov ecx, dword [ebp - 0x4c]
call fcn.005b13e0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.005b14a0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jne 0x5ae625
xor ecx, ecx
mov cx, word [0x5b8e10]
test ecx, ecx
je 0x5ae625
xor edx, edx
mov dx, word [0x5b8bdf]
test edx, edx
je 0x5ae625
mov ax, word [0x5b8bdf]
sub ax, 1
mov word [0x5b8bdf], ax
xor ecx, ecx
mov cx, word [0x5b8b08]
and ecx, 0xd000
test ecx, ecx
jne 0x5ae654
xor edx, edx
mov dx, word [0x5b8b08]
and edx, 0x100
test edx, edx
je 0x5ae654
mov word [0x5b8e10], 1
cmp dword [ebp - 0x4c], 1
jne 0x5ae7b5
xor eax, eax
mov ax, word [0x5b8e10]
test eax, eax
je 0x5ae7b5
xor ecx, ecx
mov cx, word [0x5b8e08]
and ecx, 2
test ecx, ecx
jne 0x5ae698
cmp dword [0x5b8e00], 0
je 0x5ae698
mov dx, word [0x5b8e08]
or dl, 2
mov word [0x5b8e08], dx
cmp dword [0x5b8df8], 0
jne 0x5ae73e
xor eax, eax
mov ax, word [0x5b8e08]
and eax, 2
test eax, eax
je 0x5ae73e
call fcn.005b1790
mov word [0x5b8c34], ax
xor ecx, ecx
mov cx, word [0x5b8c34]
test ecx, ecx
je 0x5ae73e
mov word [0x5b8e10], 0
xor edx, edx
mov dx, word [0x5b8c34]
cmp edx, 2
jne 0x5ae713
xor eax, eax
mov ax, word [0x5b8e0a]
and eax, 0x2000
test eax, eax
je 0x5ae713
push 0x1010
push 0x5b8b7c
mov ecx, dword [0x5b8c10]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x5ae73e
xor edx, edx
mov dx, word [0x5b8e0a]
and edx, 0x1000
test edx, edx
je 0x5ae73e
push 0x1010
push 0x5b8b7c
mov eax, dword [0x5b8c70]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
mov cx, word [0x5b8e08]
and ecx, 1
test ecx, ecx
jne 0x5ae7b5
cmp dword [0x5b8dfc], 0
je 0x5ae780
movsx edx, word [0x5b8bf1]
test edx, edx
jl 0x5ae780
movsx eax, word [0x5b8bf1]
shl eax, 6
mov ecx, dword [0x5b8afc]
xor edx, edx
mov dx, word [ecx + eax + 0x28]
and edx, 8
test edx, edx
jne 0x5ae7a4
cmp dword [0x5b8dfc], 0
je 0x5ae7b5
movsx eax, word [0x5b8bf1]
test eax, eax
jge 0x5ae7b5
xor ecx, ecx
mov cx, word [0x5b8adc]
and ecx, 8
test ecx, ecx
je 0x5ae7b5
mov dx, word [0x5b8e08]
or dl, 1
mov word [0x5b8e08], dx
xor eax, eax
mov ax, word [0x5b8e08]
test eax, eax
je 0x5ae899
cmp dword [ebp - 0x4c], 1
jne 0x5ae899
xor ecx, ecx
mov cx, word [0x5b8e10]
test ecx, ecx
je 0x5ae899
mov edx, 0x5b8c00
mov ecx, 0x5b8be1
lea eax, [ebp - 0x74]
push eax
call fcn.005b29c0
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x60], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x5c], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x64]
mov dword [0x5b8be1], eax
mov ecx, dword [ebp - 0x60]
mov dword [0x5b8be5], ecx
mov edx, dword [ebp - 0x5c]
mov dword [0x5b8be9], edx
mov eax, dword [ebp - 0x58]
mov dword [0x5b8bed], eax
call fcn.005b0cb0
test eax, eax
jne 0x5ae844
mov edx, 0x5b52d0
mov ecx, 0x5b52b4
call fcn.005b2450
mov ecx, dword [ebp + 0x10]
call fcn.005b21c0
test eax, eax
je 0x5ae876
call fcn.005b2140
mov dword [ebp - 0x4c], eax
push 0
push 0
push 0x10
mov ecx, dword [0x5b8c38]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov word [0x5b8e10], 0
jmp 0x5ae899
mov dword [ebp - 0x4c], 0
mov word [0x5b8e10], 0
push 0
push 0
push 0x10
mov edx, dword [0x5b8c38]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.005ae9c0
mov dword [ebp - 4], eax
push 0
push 0
push 0x10
mov eax, dword [0x5b8c38]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x5b8e0c], 2
je 0x5ae911
cmp dword [ebp - 0x4c], 1
jne 0x5ae911
xor ecx, ecx
mov cx, word [0x5b8e10]
test ecx, ecx
je 0x5ae911
xor edx, edx
mov dx, word [0x5b8c74]
cmp edx, 0x8005
je 0x5ae911
mov eax, dword [ebp + 8]
push eax
push 0x5b5288
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor ecx, ecx
mov cx, word [0x5b5298]
test ecx, ecx
je 0x5ae911
mov edx, dword [ebp - 0x54]
push edx
lea edx, [ebp - 0x50]
mov ecx, dword [ebp - 4]
call fcn.005ae940
cmp dword [ebp - 0x50], 0
je 0x5ae91f
mov ecx, dword [ebp - 0x50]
call fcn.005b2440
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x5ae36e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10