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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
jmp 0x4db92e
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 0x4db397
mov edx, dword [ebp - 0x18]
and edx, 0xffff
mov dword [ebp - 0x78], edx
jmp 0x4db39e
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 [0x4e5e10], 0
mov word [0x4e5b08], 0
cmp dword [ebp + 0xc], 0
jne 0x4db3f0
mov ecx, dword [ebp + 8]
call fcn.004dc4d0
test eax, eax
jne 0x4db3f0
xor eax, eax
jmp 0x4db933
push 0x104
push 0x4e5c7c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4db40f
xor eax, eax
jmp 0x4db933
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.004dc530
test eax, eax
jne 0x4db439
push 0
push 0x4e5b7c
push 0x4e22d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4db933
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp + 0x10]
mov dword [0x4e5c1c], eax
call fcn.004de310
test eax, eax
je 0x4db57d
mov word [0x4e5e10], 1
mov dword [0x4e5df8], 1
mov ecx, dword [0x4e5e14]
and ecx, 3
test ecx, ecx
jne 0x4db491
mov edx, dword [0x4e5e14]
or edx, 3
mov dword [0x4e5e14], edx
mov eax, dword [0x4e5d80]
xor eax, 3
mov dword [0x4e5d80], eax
mov ecx, dword [0x4e5e14]
and ecx, 0x70
test ecx, ecx
jne 0x4db4ba
mov edx, dword [0x4e5e14]
or edx, 0x70
mov dword [0x4e5e14], edx
mov eax, dword [0x4e5d80]
xor eax, 0x70
mov dword [0x4e5d80], eax
mov ecx, dword [0x4e5e14]
and ecx, 0xa00
test ecx, ecx
jne 0x4db4e8
mov edx, dword [0x4e5e14]
or dh, 0xa
mov dword [0x4e5e14], edx
mov eax, dword [0x4e5d80]
xor eax, 0xa00
mov dword [0x4e5d80], eax
mov ecx, dword [0x4e5e14]
and ecx, 0xe000
test ecx, ecx
jne 0x4db516
mov edx, dword [0x4e5e14]
or dh, 0xe0
mov dword [0x4e5e14], edx
mov eax, dword [0x4e5d80]
xor eax, 0xe000
mov dword [0x4e5d80], eax
mov ecx, dword [0x4e5e14]
and ecx, 0x60000
test ecx, ecx
jne 0x4db547
mov edx, dword [0x4e5e14]
or edx, 0x60000
mov dword [0x4e5e14], edx
mov eax, dword [0x4e5d80]
xor eax, 0x60000
mov dword [0x4e5d80], eax
mov ecx, dword [0x4e5e14]
and ecx, 0x200000
test ecx, ecx
jne 0x4db578
mov edx, dword [0x4e5e14]
or edx, 0x200000
mov dword [0x4e5e14], edx
mov eax, dword [0x4e5d80]
xor eax, 0x200000
mov dword [0x4e5d80], eax
jmp 0x4db899
mov dword [0x4e5df8], 0
mov ecx, 1
call fcn.004de1b0
xor ecx, ecx
mov cx, word [0x4e5b08]
and ecx, 0xc000
test ecx, ecx
jne 0x4db5d1
xor edx, edx
mov dx, word [0x4e5b08]
and edx, 0x1000
test edx, edx
je 0x4db5d1
push 0
push 0x8003
push 0x111
mov eax, dword [0x4e5c38]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4db5d6
call fcn.004dbca0
cmp dword [0x4e2250], 0
je 0x4db5f5
mov ecx, dword [ebp - 0x4c]
call fcn.004de3e0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
call fcn.004de4a0
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jne 0x4db625
xor ecx, ecx
mov cx, word [0x4e5e10]
test ecx, ecx
je 0x4db625
xor edx, edx
mov dx, word [0x4e5bdf]
test edx, edx
je 0x4db625
mov ax, word [0x4e5bdf]
sub ax, 1
mov word [0x4e5bdf], ax
xor ecx, ecx
mov cx, word [0x4e5b08]
and ecx, 0xd000
test ecx, ecx
jne 0x4db654
xor edx, edx
mov dx, word [0x4e5b08]
and edx, 0x100
test edx, edx
je 0x4db654
mov word [0x4e5e10], 1
cmp dword [ebp - 0x4c], 1
jne 0x4db7b5
xor eax, eax
mov ax, word [0x4e5e10]
test eax, eax
je 0x4db7b5
xor ecx, ecx
mov cx, word [0x4e5e08]
and ecx, 2
test ecx, ecx
jne 0x4db698
cmp dword [0x4e5e00], 0
je 0x4db698
mov dx, word [0x4e5e08]
or dl, 2
mov word [0x4e5e08], dx
cmp dword [0x4e5df8], 0
jne 0x4db73e
xor eax, eax
mov ax, word [0x4e5e08]
and eax, 2
test eax, eax
je 0x4db73e
call fcn.004de790
mov word [0x4e5c34], ax
xor ecx, ecx
mov cx, word [0x4e5c34]
test ecx, ecx
je 0x4db73e
mov word [0x4e5e10], 0
xor edx, edx
mov dx, word [0x4e5c34]
cmp edx, 2
jne 0x4db713
xor eax, eax
mov ax, word [0x4e5e0a]
and eax, 0x2000
test eax, eax
je 0x4db713
push 0x1010
push 0x4e5b7c
mov ecx, dword [0x4e5c10]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4db73e
xor edx, edx
mov dx, word [0x4e5e0a]
and edx, 0x1000
test edx, edx
je 0x4db73e
push 0x1010
push 0x4e5b7c
mov eax, dword [0x4e5c70]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
mov cx, word [0x4e5e08]
and ecx, 1
test ecx, ecx
jne 0x4db7b5
cmp dword [0x4e5dfc], 0
je 0x4db780
movsx edx, word [0x4e5bf1]
test edx, edx
jl 0x4db780
movsx eax, word [0x4e5bf1]
shl eax, 6
mov ecx, dword [0x4e5afc]
xor edx, edx
mov dx, word [ecx + eax + 0x28]
and edx, 8
test edx, edx
jne 0x4db7a4
cmp dword [0x4e5dfc], 0
je 0x4db7b5
movsx eax, word [0x4e5bf1]
test eax, eax
jge 0x4db7b5
xor ecx, ecx
mov cx, word [0x4e5adc]
and ecx, 8
test ecx, ecx
je 0x4db7b5
mov dx, word [0x4e5e08]
or dl, 1
mov word [0x4e5e08], dx
xor eax, eax
mov ax, word [0x4e5e08]
test eax, eax
je 0x4db899
cmp dword [ebp - 0x4c], 1
jne 0x4db899
xor ecx, ecx
mov cx, word [0x4e5e10]
test ecx, ecx
je 0x4db899
mov edx, 0x4e5c00
mov ecx, 0x4e5be1
lea eax, [ebp - 0x74]
push eax
call fcn.004df9c0
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 [0x4e5be1], eax
mov ecx, dword [ebp - 0x60]
mov dword [0x4e5be5], ecx
mov edx, dword [ebp - 0x5c]
mov dword [0x4e5be9], edx
mov eax, dword [ebp - 0x58]
mov dword [0x4e5bed], eax
call fcn.004ddcb0
test eax, eax
jne 0x4db844
mov edx, 0x4e22d0
mov ecx, 0x4e22b4
call fcn.004df450
mov ecx, dword [ebp + 0x10]
call fcn.004df1c0
test eax, eax
je 0x4db876
call fcn.004df140
mov dword [ebp - 0x4c], eax
push 0
push 0
push 0x10
mov ecx, dword [0x4e5c38]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov word [0x4e5e10], 0
jmp 0x4db899
mov dword [ebp - 0x4c], 0
mov word [0x4e5e10], 0
push 0
push 0
push 0x10
mov edx, dword [0x4e5c38]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.004db9c0
mov dword [ebp - 4], eax
push 0
push 0
push 0x10
mov eax, dword [0x4e5c38]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x4e5e0c], 2
je 0x4db911
cmp dword [ebp - 0x4c], 1
jne 0x4db911
xor ecx, ecx
mov cx, word [0x4e5e10]
test ecx, ecx
je 0x4db911
xor edx, edx
mov dx, word [0x4e5c74]
cmp edx, 0x8005
je 0x4db911
mov eax, dword [ebp + 8]
push eax
push 0x4e2288
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor ecx, ecx
mov cx, word [0x4e2298]
test ecx, ecx
je 0x4db911
mov edx, dword [ebp - 0x54]
push edx
lea edx, [ebp - 0x50]
mov ecx, dword [ebp - 4]
call fcn.004db940
cmp dword [ebp - 0x50], 0
je 0x4db91f
mov ecx, dword [ebp - 0x50]
call fcn.004df440
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x4db36e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10