Function at 0x40f8fe
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov dword [ebp - 0x170], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 0x170]
call fcn.00410a47
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40fff6
mov eax, dword [0x41d580]
mov dword [ebp - 0xe8], eax
push 0xc9
push dword [ebp - 0xe8]
call dword [0x41d480]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], SysReAllocStringLen
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
mov byte [ebp - 0x5d], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402ff2
lea eax, [ebp - 0x18]
push eax
call fcn.00415b26
pop ecx
and dword [ebp - 0xc], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 0x58], 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x50]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0xa0], esp
lea eax, [ebp - 0x10]
push eax
call fcn.00410592
mov ecx, dword [ebp - 0x170]
call fcn.0040fffd
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xf0], eax
and dword [ebp - 0x28], 0
push dword [ebp - 0xf0]
lea ecx, [ebp - 0x28]
call fcn.00410c4f
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
jge 0x40f9e3
push dword [ebp - 0xec]
call fcn.00403423
push 0
lea ecx, [ebp - 0x28]
call fcn.0041077d
mov dword [ebp - 8], eax
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x64], 1
jmp 0x40fa04
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 8]
jge 0x40fbc7
push dword [ebp - 0x64]
lea ecx, [ebp - 0x28]
call fcn.004107db
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404408
push 0x41a034
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.00402ff2
mov ecx, eax
call fcn.004105c4
push eax
call fcn.00410600
pop ecx
pop ecx
mov byte [ebp - 0xa1], al
lea ecx, [ebp - 0xa8]
call fcn.00404044
movzx eax, byte [ebp - 0xa1]
test eax, eax
je 0x40fa6b
mov byte [ebp - 0x5d], 0
jmp 0x40fbc2
push 0x41a030
push 3
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xb0]
call fcn.00402ff2
mov ecx, eax
call fcn.004105c4
mov ecx, eax
call fcn.00403387
push eax
call fcn.00410600
pop ecx
pop ecx
mov byte [ebp - 0xa9], al
lea ecx, [ebp - 0xb4]
call fcn.00404044
lea ecx, [ebp - 0xb0]
call fcn.00404044
movzx eax, byte [ebp - 0xa9]
test eax, eax
je 0x40fb64
cmp dword [ebp - 0x1c], 0
jne 0x40fad7
and dword [ebp - 0x174], 0
jmp 0x40fae6
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x1c], 0
jne 0x40faf5
and dword [ebp - 0x178], 0
jmp 0x40fb04
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x178]
sub eax, 3
push eax
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xb8]
call fcn.00402ff2
mov ecx, eax
call fcn.004032dd
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
mov eax, dword [eax]
mov dword [ebp - 0x124], eax
push dword [ebp - 0x124]
lea ecx, [ebp - 0x58]
call fcn.00404482
lea ecx, [ebp - 0xbc]
call fcn.00404044
lea ecx, [ebp - 0xb8]
call fcn.00404044
jmp 0x40fbc2
push 0x41a02c
push 1
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xc4]
call fcn.00402ff2
mov ecx, eax
call fcn.00403387
push eax
call fcn.00410662
pop ecx
pop ecx
mov byte [ebp - 0xbd], al
lea ecx, [ebp - 0xc8]
call fcn.00404044
lea ecx, [ebp - 0xc4]
call fcn.00404044
movzx eax, byte [ebp - 0xbd]
test eax, eax
je 0x40fbc2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404408
jmp 0x40f9fd
cmp dword [ebp - 0x18], 0
je 0x40fdae
lea eax, [ebp - 0x70]
push eax
push str.left
lea eax, [ebp - 0x18]
push eax
call fcn.0041585f
add esp, 0xc
movzx eax, al
test eax, eax
je 0x40fdae
lea eax, [ebp - 0x78]
push eax
push 0x419fb4
lea eax, [ebp - 0x18]
push eax
call fcn.0041585f
add esp, 0xc
movzx eax, al
test eax, eax
je 0x40fdae
lea eax, [ebp - 0x74]
push eax
push str.right
lea eax, [ebp - 0x18]
push eax
call fcn.0041585f
add esp, 0xc
movzx eax, al
test eax, eax
je 0x40fdae
lea eax, [ebp - 0x6c]
push eax
push str.bottom
lea eax, [ebp - 0x18]
push eax
call fcn.0041585f
add esp, 0xc
movzx eax, al
test eax, eax
je 0x40fdae
lea eax, [ebp - 0x68]
push eax
push str.state
lea eax, [ebp - 0x18]
push eax
call fcn.0041585f
add esp, 0xc
movzx eax, al
test eax, eax
je 0x40fdae
push 0x4c
call fcn.0040d662
mov dword [ebp - 0x94], eax
push 0x4d
call fcn.0040d662
mov dword [ebp - 0x90], eax
push 0x4e
call fcn.0040d662
add eax, dword [ebp - 0x94]
mov dword [ebp - 0x8c], eax
push 0x4f
call fcn.0040d662
add eax, dword [ebp - 0x90]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x70]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x94]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x90]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x84]
jle 0x40fd01
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x7c]
jle 0x40fd0f
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x94]
jae 0x40fd2f
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
add eax, dword [ebp - 0x98]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x8c]
jbe 0x40fd4f
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x98]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x90]
jae 0x40fd6c
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x88]
jbe 0x40fd89
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x80]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x68], 3
jne 0x40fdae
mov dword [ebp + 8], 3
push 0
lea ecx, [ebp - 0x28]
call fcn.004107db
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov eax, dword [eax]
mov dword [ebp - 0x13c], eax
push dword [ebp - 0x13c]
lea ecx, [ebp - 0x24]
call fcn.00402ff2
push 0x5c
lea ecx, [ebp - 0x24]
call fcn.00403295
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x24]
call fcn.00403387
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov eax, dword [eax]
mov dword [ebp - 0x14c], eax
push dword [ebp - 0x14c]
lea ecx, [ebp - 0xc]
call fcn.00404482
lea ecx, [ebp - 0xcc]
call fcn.00404044
push 0x5c
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x40fe5d
push dword [ebp - 0x58]
push dword [ebp - 0x2c]
push dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xd4]
call fcn.0040d6e0
mov dword [ebp - 0x17c], eax
jmp 0x40fe64
and dword [ebp - 0x17c], 0
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp - 0xd0]
mov dword [eax + 0x40], ecx
lea ecx, [ebp - 0x40]
call fcn.00410a9f
lea eax, [ebp - 0x40]
push eax
push 0x41a01c
push 1
push 0
push 0x41a00c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [ebp - 0x40], 0
je 0x40fef8
mov eax, dword [ebp - 0x170]
cmp dword [eax + 0x40], 0
je 0x40fec5
mov eax, dword [ebp - 0x170]
mov eax, dword [eax + 0x40]
add eax, 0x24
mov dword [ebp - 0x180], eax
jmp 0x40fecc
and dword [ebp - 0x180], 0
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x184], eax
push dword [ebp - 0x9c]
push dword [ebp - 0x184]
mov eax, dword [ebp - 0x184]
mov eax, dword [eax]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [0x41d1b8], eax
push 0
and dword [ebp - 0x150], 0
push ecx
mov eax, esp
mov dword [ebp - 0xd8], esp
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
mov dword [eax], ecx
push 0
push 0
push 0
push ecx
mov eax, esp
mov dword [ebp - 0xdc], esp
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x3c]
mov dword [eax], ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0x40]
call fcn.004106c5
mov eax, dword [ebp - 0x170]
mov eax, dword [eax + 0x40]
add eax, 4
mov dword [ebp - 0x164], eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x164]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
movzx eax, byte [ebp - 0x5d]
test eax, eax
je 0x40ff96
push 1
mov eax, dword [ebp - 0x170]
mov ecx, dword [eax + 0x40]
call fcn.0040f0c0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040b4d0
lea ecx, [ebp - 0x24]
call fcn.00404044
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x28]
call fcn.00410d02
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [ebp - 0x58]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x18]
call fcn.00401574
lea ecx, [ebp - 0x10]
call fcn.00404044
mov eax, dword [ebp - 4]
leave
ret 4