Function at 0x40bc30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x470016
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b914]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x17c]
lea esi, [esp + 0x1c]
call fcn.0040ab90
mov dword [esp + 0x174], 0
mov ecx, dword [ebp + 0x1dc]
sub ecx, dword [ebp + 0x1d8]
mov esi, dword [ebp + 0x1c8]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x40bcff
mov dword [esp + 0x174], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bcd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bcf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40c1dc
mov ecx, dword [ebp + 0x1dc]
sub ecx, dword [ebp + 0x1d8]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x40bd25
call fcn.00455747
mov eax, dword [ebp + 0x1d8]
lea edx, [esi + esi*2]
mov ecx, dword [eax + edx*8]
lea esi, [eax + edx*8]
lea edx, [esi + 4]
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0x24]
call fcn.004025d0
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x28]
call fcn.004025d0
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
test esi, esi
je 0x40bd91
push esi
call fcn.0040db90
test al, al
jne 0x40bd91
mov edx, 3
mov ecx, edi
mov eax, ebp
call fcn.0040bbb0
lea esi, [esp + 0x1c]
call fcn.0040a980
jmp 0x40c1da
mov eax, dword [esp + 0x1c]
dec eax
cmp eax, 0x13
ja case.0x40bd9f.10
jmp dword [eax*4 + 0x40c208]
push 0x103
lea ecx, [esp + 0x61]
push 0
push ecx
mov byte [esp + 0x68], 0
call fcn.004592c0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add esp, 0xc
push edx
push eax
call fcn.00456b9b
add esp, 4
push eax
call fcn.00406b80
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0
push 0x21
lea ecx, [esp + 0x64]
push ecx
push 0
call esi
test eax, eax
je 0x40be00
push 1
push 0
lea edx, [esp + 0x64]
push edx
lea ecx, [esp + 0x27]
call fcn.00405630
push 0
push 0x20
lea eax, [esp + 0x64]
push eax
push 0
call esi
test eax, eax
je 0x40be23
push 0
push 0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x27]
call fcn.00405630
call fcn.0040e1c0
jmp 0x40c184
mov edx, dword [esp + 0x20]
push edx
call fcn.00456b85
add esp, 4
imul eax, eax, 0x3e8
mov edx, 2
mov ecx, eax
jmp 0x40c188
mov eax, dword [esp + 0x20]
push eax
mov eax, ebp
call fcn.0040b930
push eax
call fcn.0040bae0
mov byte [ebp + 0x1c4], 1
mov edx, 1
jmp 0x40c186
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00456b9b
add esp, 4
cmp eax, 2
jne 0x40be9e
mov edx, dword [esp + 0x20]
push edx
mov eax, ebp
call fcn.0040b930
mov esi, eax
call fcn.00406dc0
mov edx, 1
jmp 0x40c186
lea eax, [esp + 0x44]
push eax
call fcn.004022f0
lea ecx, [esp + 0x44]
push ecx
mov eax, ebp
mov byte [esp + 0x178], 1
call fcn.0040b930
mov ecx, eax
call fcn.00406e20
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x50]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40bf03
cmp ebx, eax
jae 0x40bf03
mov edx, dword [ebp + 0x20]
push 0
push 0x4650
push 0x32
push edx
call dword [sym.imp.USER32.dll_SetTimer]
lea esi, [esp + 0x44]
call fcn.0040e800
jmp case.0x40bd9f.10
mov eax, dword [ebp + 0x20]
push 0
push 0x1f4
push 0x32
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea esi, [esp + 0x44]
call fcn.0040e800
jmp case.0x40bd9f.10
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00456b9b
mov edx, dword [esp + 0x28]
add esp, 4
push edx
mov esi, eax
call fcn.00456b9b
add esp, 4
test esi, esi
jne 0x40bf63
mov eax, ebp
call fcn.0040b930
push esi
push esi
push esi
push 1
push 0xfffffdda
push eax
call fcn.0043f6c3
add esp, 0x18
jmp 0x40c184
cmp esi, 1
jne 0x40bfa5
cmp eax, 2
ja 0x40c184
mov ecx, 3
mov dword [esp + 0x4c], eax
mov eax, ebp
mov word [esp + 0x44], cx
call fcn.0040b930
lea edx, [esp + 0x44]
push edx
push 0x48cdac
push 0
push 0
push esi
push 0x69
push eax
call fcn.0043f6c3
add esp, 0x1c
jmp 0x40c184
cmp esi, 2
jne 0x40bfc9
mov eax, ebp
call fcn.0040b930
push 0
push 0
push 0
push 1
push 0x64
push eax
call fcn.0043f6c3
add esp, 0x18
jmp 0x40c184
cmp esi, 3
jne 0x40c184
mov eax, ebp
call fcn.0040b930
push 0
push 0
push 0
push 1
push 0x65
push eax
call fcn.0043f6c3
add esp, 0x18
jmp 0x40c184
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x44]
push eax
lea edi, [esp + 0x2c]
mov ecx, ebp
call fcn.0040c6d0
test al, al
je 0x40c184
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
mov eax, ebp
call fcn.0040b930
push eax
call fcn.00406300
mov edx, dword [esp + 0x20]
jmp 0x40c184
mov edi, dword [esp + 0x24]
push edi
call fcn.00456b9b
mov esi, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x40c06b
push esi
mov eax, ebp
call fcn.0040b930
mov ecx, eax
call fcn.00405bb0
jmp 0x40c184
push edi
call fcn.00456b9b
add esp, 4
cmp eax, 1
jne 0x40c184
mov eax, ebp
call fcn.0040b930
push eax
mov ecx, esi
call fcn.00406020
jmp 0x40c184
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.0040c260
test al, al
jne 0x40c184
push 0x5dc
call fcn.0040e0f0
add esp, 4
lea esi, [esp + 0x1c]
call fcn.0040a980
xor al, al
jmp 0x40c1dc
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov eax, ebp
call fcn.0040b930
call fcn.00405450
xor ecx, ecx
test al, al
mov eax, ebp
je 0x40c0e6
lea edx, [ecx + 4]
jmp 0x40c18a
xor edx, edx
jmp 0x40c18a
push ebp
lea ecx, [esp + 0x20]
call fcn.0040c960
jmp 0x40c184
lea ecx, [esp + 0x1c]
call fcn.0040d760
test al, al
jne 0x40c184
lea esi, [esp + 0x1c]
call fcn.0040a980
xor al, al
jmp 0x40c1dc
call fcn.0040d920
jmp 0x40c184
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.0040ce50
test al, al
jne 0x40c184
call fcn.004012c0
push 0
push 3
call fcn.00406b80
lea esi, [esp + 0x1c]
call fcn.0040a980
xor al, al
jmp 0x40c1dc
lea eax, [esp + 0x1c]
push eax
mov edi, ebp
call fcn.0040d170
jmp 0x40c105
lea edi, [esp + 0x1c]
call fcn.0040d400
jmp 0x40c184
call fcn.0040d530
jmp 0x40c184
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.0040da20
jmp 0x40c184
lea eax, [esp + 0x1c]
call fcn.0040d720
xor edx, edx
xor ecx, ecx
mov eax, ebp
call fcn.0040bbb0
mov dword [esp + 0x174], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c1ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c1da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00454d22
add esp, 0x164
ret 4