Function at 0x40ba30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41895d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov eax, dword [esp + 0x444]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x448]
push edi
mov ebx, ecx
mov ecx, dword [esp + 0x448]
push eax
push esi
push ecx
mov ecx, ebx
mov dword [esp + 0x30], ebx
call fcn.004017c0
mov edx, dword [0x41d050]
mov dword [esp + 0x14], edx
push 0x104
lea eax, [esp + 0x234]
push eax
push esi
mov dword [esp + 0x44c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x230]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403230
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [edx - 0xc]
push ecx
mov dword [esp + 0x24], esp
mov ecx, esp
jl 0x40bad0
push eax
mov dword [ecx], edx
call edi
jmp 0x40badd
mov eax, dword [0x41d050]
push edx
mov dword [ecx], eax
call fcn.00403230
lea ecx, [esp + 0x14]
push ecx
call fcn.004025c0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x444], 1
call fcn.004031d0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x41d054]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
mov byte [esp + 0x440], 0
je 0x40bb35
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40bb35
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0040f26f
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [ebx + 0x44]
call fcn.004031d0
push 0
push 0x1c
lea ecx, [esp + 0x30]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.lvseie
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push str._sTemp_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x28]
lea esi, [ebx + 0x40]
push edx
mov ecx, esi
call fcn.00403230
mov eax, dword [esi]
mov edx, dword [eax - 0xc]
test edx, edx
push ecx
mov dword [esp + 0x24], esp
mov ecx, esp
jl 0x40bba2
mov dword [ecx], eax
add eax, 0xfffffff4
push eax
call edi
jmp 0x40bbb1
mov eax, dword [0x41d050]
mov dword [ecx], eax
mov edx, dword [esi]
push edx
call fcn.00403230
call fcn.0040b760
mov eax, dword [esp + 0x454]
add esp, 4
push eax
lea ecx, [esp + 0x20]
call fcn.00404530
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 8]
test eax, eax
mov byte [esp + 0x440], 2
jl 0x40bbf7
push 0x419c28
push esi
call fcn.0040f2a4
add esp, 8
test eax, eax
je 0x40bbf7
sub eax, esi
sar eax, 1
test eax, eax
jg 0x40bc47
mov eax, dword [0x41d054]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x40bc16
add esi, 0xfffffff4
push esi
call ebp
test eax, eax
jg 0x40bc16
push esi
call fcn.0040f26f
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [0x41d054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40be93
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x40be93
push esi
call fcn.0040f26f
add esp, 4
jmp 0x40be93
add eax, 3
mov ecx, dword [esi - 8]
js 0x40bc70
cmp eax, ecx
jg 0x40bc70
lea eax, [esi + eax*2]
push 0x419c24
push eax
call fcn.0040f2a4
add esp, 8
test eax, eax
je 0x40bc70
sub eax, esi
sar eax, 1
mov edi, eax
jmp 0x40bc73
or edi, 0xffffffff
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
call fcn.004045b0
push eax
lea ecx, [ebx + 0x48]
mov byte [esp + 0x444], 3
call fcn.004031d0
mov eax, dword [esp + 0x10]
mov edx, dword [0x41d054]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x440], 2
je 0x40bcc6
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x40bcc6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0040f26f
add esp, 4
push str.silent:1
lea ecx, [esp + 0x1c]
call fcn.00404530
push str.silent:0
lea ecx, [esp + 0x14]
mov byte [esp + 0x444], 4
call fcn.00404530
push 0x419bec
lea ecx, [esp + 0x24]
mov byte [esp + 0x444], 5
call fcn.00404530
lea ecx, [esp + 0x18]
mov byte [esp + 0x440], 6
call fcn.004024e0
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.USER32.dll_CharLowerW]
push edx
call ebp
lea ecx, [esp + 0x10]
call fcn.004024e0
mov ebx, dword [esp + 0x10]
push ebx
call ebp
test edi, edi
mov ebp, dword [esp + 0x20]
jl 0x40bd90
cmp edi, dword [esi - 8]
jg 0x40bd90
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esi + edi*2]
push ecx
call fcn.0040f2a4
add esp, 8
test eax, eax
je 0x40bd65
sub eax, esi
sar eax, 1
test eax, eax
jl 0x40bd65
mov edx, dword [esp + 0x24]
mov dword [edx + 0x3c], 1
jmp 0x40bdae
cmp edi, dword [esi - 8]
jg 0x40bd90
lea eax, [esi + edi*2]
push ebx
push eax
call fcn.0040f2a4
add esp, 8
test eax, eax
je 0x40bd90
sub eax, esi
sar eax, 1
test eax, eax
jl 0x40bd90
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x3c], 0
jmp 0x40bdae
push edi
push ebp
lea ecx, [esp + 0x24]
call fcn.00401880
test eax, eax
jl 0x40be66
mov edx, dword [esp + 0x24]
mov dword [edx + 0x3c], 2
mov ecx, dword [0x41d054]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x40bdd6
lea edi, [ebp - 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push edi
call ebp
test eax, eax
jg 0x40bddc
push edi
call fcn.0040f26f
add esp, 4
jmp 0x40bddc
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [0x41d054]
lea ecx, [ebx - 0xc]
cmp ecx, eax
je 0x40bdfb
lea edi, [ebx - 0xc]
push edi
call ebp
test eax, eax
jg 0x40bdfb
push edi
call fcn.0040f26f
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, dword [0x41d054]
lea edx, [edi - 0xc]
cmp edx, eax
je 0x40be1e
add edi, 0xfffffff4
push edi
call ebp
test eax, eax
jg 0x40be1e
push edi
call fcn.0040f26f
add esp, 4
mov ecx, dword [0x41d054]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x40be3e
add esi, 0xfffffff4
push esi
call ebp
test eax, eax
jg 0x40be3e
push esi
call fcn.0040f26f
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x41d054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40be62
lea esi, [eax - 0xc]
push esi
call ebp
test eax, eax
jg 0x40be62
push esi
call fcn.0040f26f
add esp, 4
mov al, 1
jmp 0x40be95
lea ecx, [esp + 0x20]
call fcn.004018c0
lea ecx, [esp + 0x10]
call fcn.004018c0
lea ecx, [esp + 0x18]
call fcn.004018c0
lea ecx, [esp + 0x1c]
call fcn.004018c0
lea ecx, [esp + 0x14]
call fcn.004018c0
xor al, al
mov ecx, dword [esp + 0x438]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x434
ret 0x10