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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
jmp 0x42f942
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 0x42f397
mov edx, dword [ebp - 0x18]
and edx, 0xffff
mov dword [ebp - 0x78], edx
jmp 0x42f39e
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 [0x439f00], 0
mov word [0x439bf8], 0
cmp dword [ebp + 0xc], 0
jne 0x42f3f0
mov ecx, dword [ebp + 8]
call fcn.004304e0
test eax, eax
jne 0x42f3f0
xor eax, eax
jmp 0x42f947
push 0x104
push 0x439d6c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42f40f
xor eax, eax
jmp 0x42f947
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.00430540
test eax, eax
jne 0x42f439
push 0
push 0x439c6c
push 0x4363c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x42f947
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp + 0x10]
mov dword [0x439d0c], eax
call fcn.00432320
test eax, eax
je 0x42f57d
mov word [0x439f00], 1
mov dword [0x439ee8], 1
mov ecx, dword [0x439f04]
and ecx, 3
test ecx, ecx
jne 0x42f491
mov edx, dword [0x439f04]
or edx, 3
mov dword [0x439f04], edx
mov eax, dword [0x439e70]
xor eax, 3
mov dword [0x439e70], eax
mov ecx, dword [0x439f04]
and ecx, 0x70
test ecx, ecx
jne 0x42f4ba
mov edx, dword [0x439f04]
or edx, 0x70
mov dword [0x439f04], edx
mov eax, dword [0x439e70]
xor eax, 0x70
mov dword [0x439e70], eax
mov ecx, dword [0x439f04]
and ecx, 0xa00
test ecx, ecx
jne 0x42f4e8
mov edx, dword [0x439f04]
or dh, 0xa
mov dword [0x439f04], edx
mov eax, dword [0x439e70]
xor eax, 0xa00
mov dword [0x439e70], eax
mov ecx, dword [0x439f04]
and ecx, 0xe000
test ecx, ecx
jne 0x42f516
mov edx, dword [0x439f04]
or dh, 0xe0
mov dword [0x439f04], edx
mov eax, dword [0x439e70]
xor eax, 0xe000
mov dword [0x439e70], eax
mov ecx, dword [0x439f04]
and ecx, 0x60000
test ecx, ecx
jne 0x42f547
mov edx, dword [0x439f04]
or edx, 0x60000
mov dword [0x439f04], edx
mov eax, dword [0x439e70]
xor eax, 0x60000
mov dword [0x439e70], eax
mov ecx, dword [0x439f04]
and ecx, 0x200000
test ecx, ecx
jne 0x42f578
mov edx, dword [0x439f04]
or edx, 0x200000
mov dword [0x439f04], edx
mov eax, dword [0x439e70]
xor eax, 0x200000
mov dword [0x439e70], eax
jmp 0x42f8ad
mov dword [0x439ee8], 0
jmp 0x42f59b
mov ecx, 1
call fcn.004321c0
xor ecx, ecx
mov cx, word [0x439bf8]
and ecx, 0xc000
test ecx, ecx
jne 0x42f5e5
xor edx, edx
mov dx, word [0x439bf8]
and edx, 0x1000
test edx, edx
je 0x42f5e5
push 0
push 0x8003
push 0x111
mov eax, dword [0x439d28]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x42f5ea
call fcn.0042fcb0
cmp dword [0x436250], 0
je 0x42f609
mov ecx, dword [ebp - 0x4c]
call fcn.004323f0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.004324b0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jne 0x42f639
xor ecx, ecx
mov cx, word [0x439f00]
test ecx, ecx
je 0x42f639
xor edx, edx
mov dx, word [0x439ccf]
test edx, edx
je 0x42f639
mov ax, word [0x439ccf]
sub ax, 1
mov word [0x439ccf], ax
xor ecx, ecx
mov cx, word [0x439bf8]
and ecx, 0xd000
test ecx, ecx
jne 0x42f668
xor edx, edx
mov dx, word [0x439bf8]
and edx, 0x100
test edx, edx
je 0x42f668
mov word [0x439f00], 1
cmp dword [ebp - 0x4c], 1
jne 0x42f7c9
xor eax, eax
mov ax, word [0x439f00]
test eax, eax
je 0x42f7c9
xor ecx, ecx
mov cx, word [0x439ef8]
and ecx, 2
test ecx, ecx
jne 0x42f6ac
cmp dword [0x439ef0], 0
je 0x42f6ac
mov dx, word [0x439ef8]
or dl, 2
mov word [0x439ef8], dx
cmp dword [0x439ee8], 0
jne 0x42f752
xor eax, eax
mov ax, word [0x439ef8]
and eax, 2
test eax, eax
je 0x42f752
call fcn.004327a0
mov word [0x439d24], ax
xor ecx, ecx
mov cx, word [0x439d24]
test ecx, ecx
je 0x42f752
mov word [0x439f00], 0
xor edx, edx
mov dx, word [0x439d24]
cmp edx, 2
jne 0x42f727
xor eax, eax
mov ax, word [0x439efa]
and eax, 0x2000
test eax, eax
je 0x42f727
push 0x1010
push 0x439c6c
mov ecx, dword [0x439d00]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x42f752
xor edx, edx
mov dx, word [0x439efa]
and edx, 0x1000
test edx, edx
je 0x42f752
push 0x1010
push 0x439c6c
mov eax, dword [0x439d60]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
mov cx, word [0x439ef8]
and ecx, 1
test ecx, ecx
jne 0x42f7c9
cmp dword [0x439eec], 0
je 0x42f794
movsx edx, word [0x439ce1]
test edx, edx
jl 0x42f794
movsx eax, word [0x439ce1]
shl eax, 6
mov ecx, dword [0x439bec]
xor edx, edx
mov dx, word [ecx + eax + 0x28]
and edx, 8
test edx, edx
jne 0x42f7b8
cmp dword [0x439eec], 0
je 0x42f7c9
movsx eax, word [0x439ce1]
test eax, eax
jge 0x42f7c9
xor ecx, ecx
mov cx, word [0x439bcc]
and ecx, 8
test ecx, ecx
je 0x42f7c9
mov dx, word [0x439ef8]
or dl, 1
mov word [0x439ef8], dx
xor eax, eax
mov ax, word [0x439ef8]
test eax, eax
je 0x42f8ad
cmp dword [ebp - 0x4c], 1
jne 0x42f8ad
xor ecx, ecx
mov cx, word [0x439f00]
test ecx, ecx
je 0x42f8ad
mov edx, 0x439cf0
mov ecx, 0x439cd1
lea eax, [ebp - 0x74]
push eax
call fcn.004339d0
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 [0x439cd1], eax
mov ecx, dword [ebp - 0x60]
mov dword [0x439cd5], ecx
mov edx, dword [ebp - 0x5c]
mov dword [0x439cd9], edx
mov eax, dword [ebp - 0x58]
mov dword [0x439cdd], eax
call fcn.00431cc0
test eax, eax
jne 0x42f858
mov edx, 0x4363a8
mov ecx, 0x43638c
call fcn.00433460
mov ecx, dword [ebp + 0x10]
call fcn.004331d0
test eax, eax
je 0x42f88a
call fcn.00433150
mov dword [ebp - 0x4c], eax
push 0
push 0
push 0x10
mov ecx, dword [0x439d28]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov word [0x439f00], 0
jmp 0x42f8ad
mov dword [ebp - 0x4c], 0
mov word [0x439f00], 0
push 0
push 0
push 0x10
mov edx, dword [0x439d28]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.0042f9d0
mov dword [ebp - 4], eax
push 0
push 0
push 0x10
mov eax, dword [0x439d28]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x439efc], 2
je 0x42f925
cmp dword [ebp - 0x4c], 1
jne 0x42f925
xor ecx, ecx
mov cx, word [0x439f00]
test ecx, ecx
je 0x42f925
xor edx, edx
mov dx, word [0x439d64]
cmp edx, 0x8005
je 0x42f925
mov eax, dword [ebp + 8]
push eax
push 0x436288
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor ecx, ecx
mov cx, word [0x436298]
test ecx, ecx
je 0x42f925
mov edx, dword [ebp - 0x54]
push edx
lea edx, [ebp - 0x50]
mov ecx, dword [ebp - 4]
call fcn.0042f950
cmp dword [ebp - 0x50], 0
je 0x42f933
mov ecx, dword [ebp - 0x50]
call fcn.00433450
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x42f36e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10