Function at 0x40fd00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5852c6
mov eax, dword fs:[0]
push eax
sub esp, 0x63c
mov eax, dword [0x5d4074]
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 0x40fd61
xor ecx, ecx
jmp 0x40fd75
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fd66
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1c0]
call fcn.004061c0
lea edx, [ebp - 0x1c0]
lea ecx, [ebp - 0x208]
call fcn.0044e3b0
mov eax, dword [ebp - 0x1ac]
cmp eax, 8
jb 0x40fdb1
inc eax
lea ecx, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c0]
call fcn.004074b0
push 1
push 0
lea eax, [ebp - 0x55c]
mov byte [ebp - 0x55c], 0x20
push eax
lea ecx, [ebp - 0x208]
call fcn.00413650
cmp dword [ebp - 0x1f8], ebx
je 0x40fe4c
push 1
push 0
lea eax, [ebp - 0x55c]
mov byte [ebp - 0x55c], 0x20
push eax
lea ecx, [ebp - 0x208]
call fcn.00413650
cmp eax, 0xffffffff
jne 0x40fe4c
cmp dword [ebp - 0x1f4], 0x10
lea eax, [ebp - 0x208]
cmovae eax, dword [ebp - 0x208]
cmp byte [eax], 0x2d
je 0x40fe4c
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x130]
call fcn.0044e490
push eax
lea ecx, [ebp - 0x208]
call fcn.004129c0
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x40fe4c
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00406c30
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x130]
call fcn.0044e410
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x40fe67
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 0x40fe70
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x40fe9f
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004074b0
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 3
call fcn.004a60e3
add esp, 4
lea ecx, [ebp - 0x598]
call fcn.00425870
mov esi, dword [0x79c130]
mov dword [ebp - 0x164], esi
test esi, esi
jne 0x40ff42
push 0x20
call fcn.004a04f1
mov ecx, eax
call fcn.0041db40
mov dword [0x79c130], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.00405800
lea eax, [ebp - 0x2f8]
push eax
call fcn.0041e470
mov eax, dword [ebp - 0x2e4]
cmp eax, 8
jb 0x40ff1d
inc eax
lea ecx, [ebp - 0x2f8]
push eax
push dword [ebp - 0x2f8]
call fcn.004074b0
mov esi, dword [0x79c130]
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.00456b00
cmp dword [ebp - 0x210], ebx
je 0x40ff8e
mov ebx, 1
lea ecx, [ebp - 0x130]
push ebx
mov edx, 0x5ba05c
mov dword [ebp - 0x560], ebx
call fcn.004044a0
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x40ff7c
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.0041e000
mov byte [ebp - 0x55c], bl
test al, al
je 0x40ff95
mov byte [ebp - 0x55c], 0
test bl, 1
je 0x40ffc1
mov eax, dword [ebp - 0x11c]
and ebx, 0xfffffffe
mov dword [ebp - 0x560], ebx
cmp eax, 0x10
jb 0x40ffc1
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00406c30
cmp byte [ebp - 0x55c], 0
je 0x4100de
push 1
mov edx, 0x5ba05c
lea ecx, [ebp - 0x130]
call fcn.004044a0
mov edx, eax
add esp, 4
cmp dword [edx + 0x14], 0x10
jb 0x40ffed
mov edx, dword [edx]
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
cmp byte [edx], 0
jne 0x410011
xor ecx, ecx
jmp 0x41001f
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410016
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x1c0]
call fcn.004065e0
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x1a8]
call fcn.0044e410
push eax
lea eax, [ebp - 0x1c0]
mov ecx, esi
push eax
call fcn.0041e270
mov eax, dword [ebp - 0x194]
cmp eax, 8
jb 0x41006a
inc eax
lea ecx, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1a8]
call fcn.004074b0
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 0x4100a5
inc eax
lea ecx, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c0]
call fcn.00406c30
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x1ac], 0xf
mov dword [ebp - 0x1b0], 0
mov byte [ebp - 0x1c0], 0
cmp eax, 0x10
jb 0x4100de
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00406c30
push esi
lea ecx, [ebp - 0x1b4]
call fcn.00412510
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.00426dc0
add esp, 8
lea eax, [ebp - 0x130]
lea ecx, [ebp - 0x160]
push eax
call fcn.0041bc70
lea ecx, [ebp - 0x1d8]
cmp ecx, eax
je 0x410155
push 0xffffffffffffffff
push 0
push eax
call fcn.004062c0
mov eax, dword [ebp - 0x11c]
cmp eax, 8
jb 0x410173
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.004074b0
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.0041ae50
add esp, 4
lea edx, [ebp - 0x1f0]
lea ecx, [ebp - 0x250]
call fcn.0040f850
mov ecx, dword [ebp - 0x23c]
mov byte [ebp - 0x55c], al
cmp ecx, 0x10
jb 0x4101df
inc ecx
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x250]
call fcn.00406c30
mov al, byte [ebp - 0x55c]
test al, al
je 0x41028e
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.0041ad70
mov eax, dword [ebp - 0x1c4]
add esp, 4
cmp eax, 8
jb 0x410241
inc eax
lea ecx, [ebp - 0x1d8]
push eax
push dword [ebp - 0x1d8]
call fcn.004074b0
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.00406510
mov eax, dword [ebp - 0x3ec]
cmp eax, 8
jb 0x41028e
inc eax
lea ecx, [ebp - 0x400]
push eax
push dword [ebp - 0x400]
call fcn.004074b0
lea ecx, [ebp - 0x1d8]
call fcn.0040f6d0
call fcn.00454380
mov esi, eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4102ac
mov edx, dword [ecx]
push 1
call dword [edx]
push 8
call fcn.004a04f1
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [eax], 0x5c24c8
mov dword [ebp - 4], 0xffffffff
mov dword [eax], 0x5c24b8
mov dword [eax + 4], ecx
mov dword [esi], eax
call fcn.00459cd0
push ecx
call fcn.004591d0
test al, al
jne 0x410499
mov eax, dword [ebp - 0x1dc]
cmp eax, 0x10
jb 0x410309
inc eax
lea ecx, [ebp - 0x1f0]
push eax
push dword [ebp - 0x1f0]
call fcn.00406c30
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x1dc], 0xf
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 0x1f0], 0
cmp eax, 8
jb 0x410342
inc eax
lea ecx, [ebp - 0x160]
push eax
push dword [ebp - 0x160]
call fcn.004074b0
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 0x41037d
inc eax
lea ecx, [ebp - 0x1d8]
push eax
push dword [ebp - 0x1d8]
call fcn.004074b0
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 0x4103e0
push dword [ebp - 0x564]
lea eax, [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b0]
push esi
call fcn.0040b380
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.0040af50
mov eax, dword [ebp - 0x20c]
cmp eax, 0x10
jb 0x4103fe
inc eax
lea ecx, [ebp - 0x220]
push eax
push dword [ebp - 0x220]
call fcn.00406c30
cmp dword [0x79c158], 0
mov dword [ebp - 0x20c], 0xf
mov dword [ebp - 0x210], 0
mov byte [ebp - 0x220], 0
jne 0x410433
test bl, bl
jns 0x410443
lea ecx, [ebp - 0x648]
call fcn.004219d0
jmp 0x410443
call fcn.004259e0
mov eax, dword [ebp - 0x56c]
mov dword [0x79c158], eax
lea ecx, [ebp - 0x580]
call fcn.00425af0
push 1
push dword [ebp - 0x580]
call fcn.00424710
lea eax, [ebp - 0x598]
mov dword [ebp - 0x580], 0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp - 0x1f4]
cmp eax, 0x10
jb 0x411fb3
inc eax
lea ecx, [ebp - 0x208]
push eax
push dword [ebp - 0x208]
call fcn.00406c30
jmp 0x411fb3
xor eax, eax
mov dword [ebp - 0x224], 7
push 0x10
mov edx, 0x5ba020
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x130]
mov word [ebp - 0x238], ax
call fcn.004044a0
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 0x10
jb 0x4104d5
mov ecx, dword [ecx]
mov dword [ebp - 0x138], ecx
test ecx, ecx
jne 0x4104e7
mov dword [ebp - 0x134], ecx
jmp 0x41050f
cmp byte [ecx], 0
jne 0x4104f8
mov dword [ebp - 0x134], 0
jmp 0x41050f
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410500
sub ecx, edx
mov dword [ebp - 0x134], ecx
push 0
lea edx, [ebp - 0x138]
lea ecx, [ebp - 0x1a8]
call fcn.0041ad70
add esp, 4
call fcn.004514f0
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x1a8]
push ecx
mov ecx, eax
call fcn.00450e30
mov eax, dword [ebp - 0x194]
cmp eax, 8
jb 0x41055d
inc eax
lea ecx, [ebp - 0x1a8]
push eax
push dword [ebp - 0x1a8]
call fcn.004074b0
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 0x410598
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.00406c30
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x134], 4
test eax, eax
je 0x4105d2
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.00422a70
add esp, 4
call 0x4105d7
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.004a04e0
mov esp, ebp
pop ebp
ret 0x10