Function at 0x40f690
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567cb6
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x5b906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x564], esi
mov dword [ebp - 0x560], ebx
mov dword [ebp - 0x1ac], 7
mov dword [ebp - 0x1b0], ebx
mov word [ebp - 0x1c0], ax
cmp word [esi], ax
jne 0x40f6f1
xor ecx, ecx
jmp 0x40f705
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f6f6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1c0]
call fcn.00405cb0
lea edx, [ebp - 0x1c0]
lea ecx, [ebp - 0x208]
call fcn.0044d1d0
mov eax, dword [ebp - 0x1ac]
cmp eax, 8
jb 0x40f741
inc eax
lea ecx, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c0]
call fcn.00406fa0
push 1
push 0
lea eax, [ebp - 0x55c]
mov byte [ebp - 0x55c], 0x20
push eax
lea ecx, [ebp - 0x208]
call fcn.00412e40
cmp dword [ebp - 0x1f8], ebx
je 0x40f7dc
push 1
push 0
lea eax, [ebp - 0x55c]
mov byte [ebp - 0x55c], 0x20
push eax
lea ecx, [ebp - 0x208]
call fcn.00412e40
cmp eax, 0xffffffff
jne 0x40f7dc
cmp dword [ebp - 0x1f4], 0x10
lea eax, [ebp - 0x208]
cmovae eax, dword [ebp - 0x208]
cmp byte [eax], 0x2d
je 0x40f7dc
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x130]
call fcn.0044d2b0
push eax
lea ecx, [ebp - 0x208]
call fcn.00412210
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x40f7dc
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00406720
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x130]
call fcn.0044d230
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x40f7f7
mov ecx, dword [ecx]
mov edx, esi
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x40f800
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x40f82f
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00406fa0
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 3
call fcn.0048a4a3
add esp, 4
lea ecx, [ebp - 0x598]
call fcn.00424820
mov esi, dword [0x754fe8]
mov dword [ebp - 0x164], esi
test esi, esi
jne 0x40f8d2
push 0x20
call fcn.00484911
mov ecx, eax
call fcn.0041d1d0
mov dword [0x754fe8], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00405330
lea eax, [ebp - 0x2f8]
push eax
call fcn.0041db00
mov eax, dword [ebp - 0x2e4]
cmp eax, 8
jb 0x40f8ad
inc eax
lea ecx, [ebp - 0x2f8]
push eax
push dword [ebp - 0x2f8]
call fcn.00406fa0
mov esi, dword [0x754fe8]
xor eax, eax
mov dword [ebp - 0x2e4], 7
mov dword [ebp - 0x2e8], ebx
mov word [ebp - 0x2f8], ax
mov dword [ebp - 0x164], esi
lea ecx, [ebp - 0x220]
call fcn.00455900
cmp dword [ebp - 0x210], ebx
je 0x40f91e
mov ebx, 1
lea ecx, [ebp - 0x130]
push ebx
mov edx, 0x59d54c
mov dword [ebp - 0x560], ebx
call fcn.00403ff0
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40f90c
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0041d690
mov byte [ebp - 0x55c], bl
test al, al
je 0x40f925
mov byte [ebp - 0x55c], 0
test bl, 1
je 0x40f951
mov eax, dword [ebp - 0x11c]
and ebx, 0xfffffffe
mov dword [ebp - 0x560], ebx
cmp eax, 0x10
jb 0x40f951
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00406720
cmp byte [ebp - 0x55c], 0
je 0x40fa6e
push 1
mov edx, 0x59d54c
lea ecx, [ebp - 0x130]
call fcn.00403ff0
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 0x10
jb 0x40f97d
mov edx, dword [edx]
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
cmp byte [edx], 0
jne 0x40f9a1
xor ecx, ecx
jmp 0x40f9af
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f9a6
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x1c0]
call fcn.004060d0
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x1a8]
call fcn.0044d230
push eax
lea eax, [ebp - 0x1c0]
mov ecx, esi
push eax
call fcn.0041d900
mov eax, dword [ebp - 0x194]
cmp eax, 8
jb 0x40f9fa
inc eax
lea ecx, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1a8]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x194], 7
mov word [ebp - 0x1a8], ax
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x198], 0
cmp eax, 0x10
jb 0x40fa35
inc eax
lea ecx, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c0]
call fcn.00406720
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
cmp eax, 0x10
jb 0x40fa6e
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00406720
push esi
lea ecx, [ebp - 0x1b4]
call fcn.00411e30
xor eax, eax
mov dword [ebp - 0x1c4], 7
mov word [ebp - 0x1d8], ax
mov dword [ebp - 0x150], eax
mov word [ebp - 0x160], ax
lea eax, [ebp - 0x160]
push eax
push 7
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x14c], 7
call fcn.00425d90
add esp, 8
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x160]
push eax
call fcn.0041b2a0
lea ecx, [ebp - 0x1d8]
cmp ecx, eax
je 0x40fae5
push 0xffffffffffffffff
push 0
push eax
call fcn.00405db0
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x40fb03
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00406fa0
push 0
lea edx, [ebp - 0x1d8]
mov dword [ebp - 0x1dc], 0xf
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 0x1f0], 0
call fcn.0041a460
add esp, 4
lea edx, [ebp - 0x1f0]
lea ecx, [ebp - 0x250]
call fcn.0040f1e0
mov ecx, dword [ebp - 0x23c]
mov byte [ebp - 0x55c], al
cmp ecx, 0x10
jb 0x40fb6f
inc ecx
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.00406720
mov al, byte [ebp - 0x55c]
test al, al
je 0x40fc1e
cmp dword [ebp - 0x1dc], 0x10
lea eax, [ebp - 0x1f0]
push 0
cmovae eax, dword [ebp - 0x1f0]
lea edx, [ebp - 0x138]
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x400]
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x134], eax
call fcn.0041a380
mov eax, dword [ebp - 0x1c4]
add esp, 4
cmp eax, 8
jb 0x40fbd1
inc eax
lea ecx, [ebp - 0x1d8]
push eax
push dword [ebp - 0x1d8]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x1c4], 7
mov word [ebp - 0x1d8], ax
lea ecx, [ebp - 0x1d8]
lea eax, [ebp - 0x400]
mov dword [ebp - 0x1c8], 0
push eax
call fcn.00406000
mov eax, dword [ebp - 0x3ec]
cmp eax, 8
jb 0x40fc1e
inc eax
lea ecx, [ebp - 0x400]
push eax
push dword [ebp - 0x400]
call fcn.00406fa0
lea ecx, [ebp - 0x1d8]
call fcn.0040f060
call fcn.00453180
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x40fc3c
mov edx, dword [ecx]
push 1
call dword [edx]
push 8
call fcn.00484911
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x5a6ec8
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x5a6eb8
mov dword [eax + 4], ecx
mov dword [esi], eax
call fcn.00458af0
push ecx
call fcn.00457d40
test al, al
jne 0x40fe2a
mov eax, dword [ebp - 0x1dc]
cmp eax, 0x10
jb 0x40fc99
inc eax
lea ecx, [ebp - 0x1f0]
push eax
push dword [ebp - 0x1f0]
call fcn.00406720
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x1dc], 0xf
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 0x1f0], 0
cmp eax, 8
jb 0x40fcd2
inc eax
lea ecx, [ebp - 0x160]
push eax
push dword [ebp - 0x160]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x14c], 7
mov word [ebp - 0x160], ax
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x150], 0
cmp eax, 8
jb 0x40fd0d
inc eax
lea ecx, [ebp - 0x1d8]
push eax
push dword [ebp - 0x1d8]
call fcn.00406fa0
mov esi, dword [ebp - 0x1b4]
xor eax, eax
mov dword [ebp - 0x1c4], 7
mov dword [ebp - 0x1c8], 0
mov word [ebp - 0x1d8], ax
test esi, esi
je 0x40fd70
push dword [ebp - 0x564]
lea eax, [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b0]
push esi
call fcn.0040adf0
mov ecx, dword [ebp - 0x1ac]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.0040aa00
mov eax, dword [ebp - 0x20c]
cmp eax, 0x10
jb 0x40fd8e
inc eax
lea ecx, [ebp - 0x220]
push eax
push dword [ebp - 0x220]
call fcn.00406720
cmp dword [0x755010], 0
mov dword [ebp - 0x20c], 0xf
mov dword [ebp - 0x210], 0
mov byte [ebp - 0x220], 0
jne 0x40fdc3
test bl, bl
jns 0x40fdd3
lea ecx, [ebp - 0x648]
call fcn.00420cf0
jmp 0x40fdd3
call fcn.00424990
mov eax, dword [ebp - 0x56c]
mov dword [0x755010], eax
lea ecx, [ebp - 0x580]
call fcn.00424aa0
push dword [ebp - 0x580]
call fcn.00484944
add esp, 4
mov dword [ebp - 0x580], 0
lea eax, [ebp - 0x598]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp - 0x1f4]
cmp eax, 0x10
jb 0x411933
inc eax
lea ecx, [ebp - 0x208]
push eax
push dword [ebp - 0x208]
call fcn.00406720
jmp 0x411933
xor eax, eax
mov dword [ebp - 0x224], 7
push 0x10
mov edx, 0x59d510
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x130]
mov word [ebp - 0x238], ax
call fcn.00403ff0
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 0x10
jb 0x40fe66
mov ecx, dword [ecx]
mov dword [ebp - 0x138], ecx
test ecx, ecx
jne 0x40fe78
mov dword [ebp - 0x134], ecx
jmp 0x40fe9f
cmp byte [ecx], 0
jne 0x40fe89
mov dword [ebp - 0x134], 0
jmp 0x40fe9f
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fe90
sub ecx, edx
mov dword [ebp - 0x134], ecx
push 0
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x1a8]
call fcn.0041a380
add esp, 4
call fcn.00450310
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x1a8]
push ecx
mov ecx, eax
call fcn.0044fc50
mov eax, dword [ebp - 0x194]
cmp eax, 8
jb 0x40feed
inc eax
lea ecx, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1a8]
call fcn.00406fa0
xor eax, eax
mov dword [ebp - 0x194], 7
mov word [ebp - 0x1a8], ax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x198], 0
cmp eax, 0x10
jb 0x40ff28
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00406720
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x134], 4
test eax, eax
je 0x40ff62
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
lea edx, [ebp - 0x134]
cmovae ecx, dword [ebp - 0x238]
push edx
lea edx, [ecx + eax*2]
call fcn.00421bf0
add esp, 4
call 0x40ff67
pop eax
add eax, 0xf
push eax
xor eax, eax
mov eax, ecx
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484900
mov esp, ebp
pop ebp
ret 0x10