Function at 0x405130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c101
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x5cefd4]
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, ecx
mov dword [ebp - 0x2ac], 0
call fcn.0040df88
push dword [esi + 0xec]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [esi + 0x20]
call edi
push dword [esi + 0xec]
push 0
push 0x80
push dword [esi + 0x20]
call edi
push 0x3f1
mov ecx, esi
call fcn.00412758
push 0x3e8
mov ecx, esi
mov dword [esi + 0xd4], eax
call fcn.00412758
mov dword [esi + 0xd8], eax
test eax, eax
je 0x4051fa
push 0
push 0
push 0x402
push dword [eax + 0x20]
call edi
mov eax, dword [esi + 0xd8]
push 0xff0000
push 0
push 0x401
push dword [eax + 0x20]
call edi
mov eax, dword [esi + 0xd8]
push 0
push 1
push 0x404
push dword [eax + 0x20]
call edi
push 3
mov ecx, esi
call fcn.00412758
push 0x3eb
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.00412758
push 0x3ec
mov ecx, esi
mov dword [esi + 0xdc], eax
call fcn.00412758
mov dword [esi + 0xe0], eax
test eax, eax
je 0x405249
xor ecx, ecx
cmp byte [esi + 0xe8], cl
push 0
sete cl
push ecx
push 0xf1
push dword [eax + 0x20]
call edi
mov ecx, dword [esi + 0xdc]
test ecx, ecx
je 0x405267
movzx eax, byte [esi + 0xe8]
push 0
push eax
push 0xf1
push dword [ecx + 0x20]
call edi
mov ecx, dword [esi + 0xd8]
test ecx, ecx
je 0x405278
push 5
call fcn.004131b8
mov ecx, dword [esi + 0xe4]
test ecx, ecx
je 0x405289
push 0
call fcn.004131b8
mov ecx, dword [esi + 0xdc]
test ecx, ecx
je 0x40529a
push 0
call fcn.004131b8
mov ecx, dword [esi + 0xe0]
test ecx, ecx
je 0x4052ab
push 0
call fcn.004131b8
xor eax, eax
lea edi, [esi + 0x10c]
push eax
push eax
push 0xffffffffffffffff
push 0x5ad7d0
push eax
push 3
mov word [ebp - 0x298], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ebx, [eax - 1]
test ebx, ebx
jle 0x40531b
mov edx, dword [edi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, ebx
or eax, ecx
jge 0x4052f0
push ebx
mov ecx, edi
call fcn.00404060
mov edx, dword [edi]
push ebx
push edx
push 0xffffffffffffffff
push 0x5ad7d0
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi]
cmp ebx, dword [eax - 8]
jg 0x405892
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
jmp 0x405322
mov ecx, edi
call fcn.00404130
lea eax, [ebp - 0x298]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
or ebx, 0xffffffff
test eax, eax
je 0x405531
lea ecx, [ebp - 0x298]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405350
sub ecx, edx
lea eax, [ebp - 0x298]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403c90
push 1
lea eax, [ebp - 0x2a4]
mov ecx, edi
push eax
call fcn.00402e00
mov ecx, 1
mov dword [ebp - 4], 0
mov eax, dword [eax]
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x2ac], ecx
mov ecx, 0x5ad850
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4053c6
test dx, dx
je 0x4053c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4053c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4053a0
xor eax, eax
jmp 0x4053cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x405427
push 1
lea eax, [ebp - 0x2a8]
mov ecx, edi
push eax
call fcn.00402e00
mov eax, dword [eax]
mov ecx, 3
mov dword [ebp - 0x2a0], ecx
mov ecx, 0x5ad7d4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405417
test dx, dx
je 0x405413
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405417
add eax, 4
add ecx, 4
test dx, dx
jne 0x4053f1
xor eax, eax
jmp 0x40541c
sbb eax, eax
or eax, 1
mov byte [ebp - 0x299], 1
test eax, eax
jne 0x40542e
mov byte [ebp - 0x299], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2a0]
test al, 2
je 0x405465
mov edx, dword [ebp - 0x2a8]
and eax, 0xfffffffd
mov dword [ebp - 0x2ac], eax
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405465
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x2a4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405489
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x299], 0
je 0x405531
push 0x5ad850
lea eax, [ebp - 0x2a8]
push edi
push eax
call fcn.00403b90
add esp, 0xc
mov dword [ebp - 4], 2
mov ecx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x40550a
cmp dword [ebx + 0xc], 0
jl 0x4054ff
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4054ff
push edx
call fcn.00403e90
add esp, 4
mov dword [ebp - 0x2a4], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4054f8
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2a4]
add eax, 0x10
mov dword [edi], eax
jmp 0x40550a
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00403c90
mov dword [ebp - 4], 0xffffffff
or ebx, 0xffffffff
mov edx, dword [ebp - 0x2a8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405531
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jle 0x40570e
push str.jshhsetup_
lea eax, [ebp - 0x2a8]
push edi
push eax
call fcn.00403b90
add esp, 0xc
mov dword [ebp - 4], 3
mov ecx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x4055b1
cmp dword [ebx + 0xc], 0
jl 0x4055a6
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4055a6
push edx
call fcn.00403e90
add esp, 4
mov dword [ebp - 0x2a4], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40559f
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2a4]
add eax, 0x10
mov dword [edi], eax
jmp 0x4055b1
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00403c90
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x2a8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4055d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xf4240
div ecx
test edx, edx
jns 0x4055eb
neg edx
push edx
lea eax, [ebp - 0x90]
push str.tmp_d_
push eax
call fcn.00407790
add esp, 0xc
call fcn.0040879e
mov ecx, eax
test ecx, ecx
je 0x40589c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00403830
test al, al
jne 0x40564c
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00404190
lea eax, [ebp - 0x2a0]
mov dword [ebp - 4], 5
push eax
lea eax, [ebp - 0x2a8]
push edi
push eax
call fcn.00402d50
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov ebx, dword [edi]
sub ebx, 0x10
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x4056c6
cmp dword [ebx + 0xc], 0
jl 0x4056bb
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4056bb
push edx
call fcn.00403e90
add esp, 4
mov dword [ebp - 0x2a4], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4056b4
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2a4]
add eax, 0x10
mov dword [edi], eax
jmp 0x4056c6
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00403c90
mov byte [ebp - 4], 5
or ebx, 0xffffffff
mov edx, dword [ebp - 0x2a8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4056ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40570e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov dword [ebp - 0x2ac], esp
mov eax, dword [edi]
mov ecx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x299], 1
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov edx, eax
lea eax, [edi + 0xc]
jl 0x405743
cmp edx, dword [edi]
jne 0x405743
lock inc dword [eax]
jmp 0x405782
mov eax, dword [edx]
lea ecx, [edi + 4]
push 2
push dword [ecx]
mov dword [ebp - 0x2a4], ecx
mov ecx, edx
call dword [eax]
mov edi, eax
test edi, edi
je 0x4058a6
mov ecx, dword [ebp - 0x2a4]
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [ecx]
inc eax
push eax
push dword [ebp - 0x2a8]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00403f00
add esp, 0x10
mov edx, dword [ebp - 0x2ac]
lea eax, [edi + 0x10]
mov cl, byte [ebp - 0x299]
mov dword [edx], eax
call fcn.004042e0
add esp, 4
test al, al
jne 0x4057c1
push 0x30
push 0x5adbe4
push 0x5adbf0
mov ecx, esi
mov dword [esi + 0xf0], 0x14
call fcn.00415e66
jmp 0x405871
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a4], eax
call fcn.0040879e
mov ecx, eax
test ecx, ecx
je 0x4058ab
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2a0], eax
push str.ck_W
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 4], 7
call fcn.00403830
test al, al
jne 0x405817
push 0xb
push str.ck_W
lea ecx, [ebp - 0x2a0]
call fcn.00403c90
mov dword [ebp - 4], 8
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x405833
push dword [ebp - 0x2a0]
call fcn.00413166
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x405855
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0xc8
push 1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0xf0], 1
mov eax, 1
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.0054aef3
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00404240
push 0x80004005
call fcn.00404240
call fcn.00404010
push 0x80004005
call fcn.00404240
int3