Function at 0x402690
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524cb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x580038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00415dc1
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401a60
mov edx, dword [ebp - 0x10]
mov esi, dword [edx - 0xc]
mov dword [ebp - 4], 0
test esi, esi
jns 0x4026e9
push 0x80070057
call fcn.004010d0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x402706
push esi
lea ecx, [ebp - 0x10]
call fcn.004015f0
mov edx, dword [ebp - 0x10]
push edx
call fcn.0050cca6
mov eax, dword [ebp - 0x10]
add esp, 4
cmp esi, dword [eax - 8]
jg 0x4026df
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 1
jge 0x40272f
or eax, 0xffffffff
jmp 0x40274a
inc ecx
push 0x53416c
push ecx
call fcn.0050cbd9
add esp, 8
test eax, eax
jne 0x402747
or eax, 0xffffffff
jmp 0x40274a
sub eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401760
push eax
mov ecx, 0x5815b8
mov byte [ebp - 4], 1
call fcn.004019b0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402789
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x5815b8]
mov esi, dword [edx - 0xc]
test esi, esi
jns 0x4027a0
push 0x80070057
call fcn.004010d0
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4027c2
push esi
mov ecx, 0x5815b8
call fcn.004015f0
mov edx, dword [0x5815b8]
push edx
call fcn.0050cca6
mov eax, dword [0x5815b8]
add esp, 4
cmp esi, dword [eax - 8]
jg 0x4026df
mov dword [eax - 0xc], esi
mov ecx, dword [0x5815b8]
mov byte [ecx + esi], 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call fcn.00404fdf
test eax, eax
je 0x402802
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x402804
xor eax, eax
lea ecx, [edi + 0x13c]
push ecx
push esi
mov dword [edi + 0x138], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 0x144]
cmp eax, 0x400
jl 0x40283c
mov ecx, 0x300
cmp dword [edi + 0x148], ecx
jl 0x40283c
mov ebx, 0x400
mov dword [ebp - 0x14], ecx
jmp 0x402848
mov ebx, 0x320
mov dword [ebp - 0x14], 0x258
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [edi + 0x148]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x14]
cdq
push 0x40
sub eax, edx
mov edx, dword [ebp - 0x14]
push edx
sar eax, 1
push ebx
sar esi, 1
sub esi, eax
mov eax, dword [edi + 0x138]
push esi
push ecx
mov ecx, dword [eax + 0x20]
push 0xfffffffffffffffe
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 0
push 0
mov byte [edi + 0x14c], 1
mov edx, dword [0x5815b8]
push 0
push edx
mov ecx, edi
call fcn.0041342e
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret