Function at 0x4099c0
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x478a03
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [esp + 0x244]
mov ebp, dword [esp + 0x240]
push str.DFF954A9_35DE_4f82_862F_37B26F9F75C7
push 0
push 0x1f0003
mov dword [ebp + 4], eax
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x409a2c
mov esi, 1
jmp 0x409ea5
push str.DFF954A9_35DE_4f82_862F_37B26F9F75C7
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x409b2a
mov ecx, 1
cmp dword [esp + 0x20], ecx
mov dword [esp + 0x14], ecx
jle 0x409b14
lea edi, [ebp + 0xc]
jmp 0x409a84
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov edx, dword [eax + edx*4]
test edx, edx
jne 0x409a93
xor eax, eax
jmp 0x409aaf
mov eax, edx
lea esi, [eax + 2]
jmp 0x409aa0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409aa0
sub eax, esi
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.0040ae70
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebx + 1]
sub eax, esi
or eax, ecx
jge 0x409ad9
push esi
mov ecx, edi
call fcn.00402a60
test esi, esi
mov eax, dword [edi]
mov word [eax + ebx*2], 0x20
jl 0x409bcf
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x409bcf
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov word [eax + esi*2], 0
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jl 0x409a80
mov edx, dword [ebp + 0xc]
mov eax, dword [edx - 0xc]
test eax, eax
lea ecx, [ebp + 0xc]
jle 0x409b2a
add eax, 0xffffffff
push ecx
call fcn.0040a5b0
cmp dword [ebp + 0x568], 0
jne 0x409bfd
lea edi, [esp + 0x1c]
mov ecx, ebp
call fcn.0040a3c0
mov dword [esp + 0x238], 0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
call fcn.00409540
mov byte [esp + 0x238], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or esi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409b83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jle 0x409bd9
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x14]
push 2
mov ecx, ebp
call eax
mov dword [esp + 0x238], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x409bc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x409ef2
push 0x80070057
call fcn.00402a10
mov dword [esp + 0x238], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x409bfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx - 0xc]
test eax, eax
jne 0x409c59
push 0x103
push eax
lea edx, [esp + 0x2d]
push edx
mov byte [esp + 0x30], al
call fcn.00455df0
add esp, 0xc
lea esi, [esp + 0x24]
call fcn.0040a320
test eax, eax
jne 0x409c33
lea esi, [eax + 2]
jmp 0x409ea5
lea eax, [esp + 0x24]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409c40
sub eax, edx
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040a9c0
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jge 0x409c67
or eax, 0xffffffff
jmp 0x409c83
push str._debug
push eax
call fcn.0045521c
add esp, 8
test eax, eax
jne 0x409c7e
or eax, 0xffffffff
jmp 0x409c83
sub eax, dword [ebp + 0xc]
sar eax, 1
xor ecx, ecx
test eax, eax
setge cl
push 0x103
lea edx, [esp + 0x12d]
push 0
push edx
mov byte [esp + 0x134], 0
mov dword [esp + 0x20], ecx
call fcn.00455df0
add esp, 0xc
lea eax, [esp + 0x128]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x12c]
call fcn.0040a710
mov dword [esp + 0x238], 6
lea ebx, [esp + 0x18]
call fcn.0040a7d0
mov edx, dword [esp + 0x18]
push 0x5c
push edx
call fcn.004553fd
add esp, 8
test eax, eax
jne 0x409cfd
or eax, 0xffffffff
jmp 0x409d01
sub eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
lea ebx, [esp + 0x1c]
call fcn.0040a880
mov byte [esp + 0x238], 7
mov ecx, dword [eax]
mov esi, dword [esp + 0x18]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x409d70
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x409d62
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x409d62
push eax
call fcn.0040ab70
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x409d59
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x409d70
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0040a9c0
mov byte [esp + 0x238], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x244]
xor eax, eax
cmp dword [esp + 0x14], eax
lea esi, [ebp + 0x20]
mov dword [ebp + 0x440], eax
mov dword [esi], ecx
mov dword [ebp + 0x24], 0x7e8
mov dword [ebp + 0x28], 0x7e9
mov dword [ebp + 0x43c], 5
je 0x409dd4
mov dword [ebp + 0x43c], 7
lea edx, [esp + 0x128]
push edx
mov dword [ebp + 0x444], eax
lea eax, [ebp + 0x130]
push 0x104
push eax
call fcn.00455410
mov eax, dword [ebp + 0x18]
lea edi, [ebp + 0x18]
sub eax, 0x10
mov ebx, 1
add esp, 0xc
cmp dword [eax + 0xc], ebx
jle 0x409e14
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.00407e60
mov eax, dword [edi]
push eax
lea edx, [ebp + 0x2c]
push 0x104
push edx
call fcn.00455410
push str.VERSION
lea eax, [ebp + 0x234]
push 0x104
push eax
call fcn.00455410
push str.DOWNLOAD
lea ecx, [ebp + 0x338]
push 0x104
push ecx
call fcn.00455410
add esp, 0x24
lea edx, [ebp + 0x448]
push edx
sub esp, 0x428
mov edi, esp
mov ecx, 0x10a
rep movsd dword es:[edi], dword [esi]
call fcn.0041ec40
mov esi, eax
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409e9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x409ec7
cmp esi, 7
je 0x409ec7
test esi, esi
mov dword [ebp + 0x55c], 0
je 0x409ec3
call fcn.0041eda0
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push esi
mov ecx, ebp
call eax
xor eax, eax
jmp 0x409ef2
xor ecx, ecx
cmp esi, 7
setne cl
mov edx, 0x15
cmp edx, dword [ebp + 0x450]
mov dword [ebp + 0x55c], ebx
sbb eax, eax
neg eax
mov dword [ebp + 0x564], eax
mov dword [ebp + 0x560], ecx
mov eax, ebx
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00454567
add esp, 0x228
ret 8