Function at 0x418430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9ecf
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4d9164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
push 0xffffffffffffffff
push 0
push 0x4b4c10
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x418669
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4184a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00437950
mov dword [ebp - 4], 0
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xb
push str.BDLogging_
lea ecx, [ebp - 0x28]
call fcn.0041e6b0
mov eax, dword [0x4d9c1c]
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4184e8
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0041e6b0
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov eax, dword [0x4de0c4]
cmovae edi, dword [ebp - 0x28]
add eax, dword [0x4de0c8]
je 0x418562
mov dword [ebp - 0x34], 0
call fcn.0041e030
mov dword [ebp - 0x38], eax
lock inc dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 1
jne 0x41853a
call fcn.0041e030
mov dword [ebp - 0x38], eax
lock inc dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
cmp dword [esi], 0
je 0x41855b
mov esi, dword [esi + 0x14]
test esi, esi
je 0x41855b
push edi
mov ecx, esi
call dword [0x4b3390]
call esi
add esp, 4
mov esi, eax
jmp 0x418567
mov esi, 0x80004002
jmp 0x418567
mov esi, 0x80004005
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x30]
test al, 1
je 0x4185a3
and eax, 0xfffffffe
mov dword [ebp - 0x30], eax
or eax, 0xffffffff
mov dword [ebp - 0x38], 0
lock xadd dword [ebp - 0x34], eax
js 0x41859f
nop dword [eax]
call fcn.004271d0
or eax, 0xffffffff
lock xadd dword [ebp - 0x34], eax
jns 0x418590
lock inc dword [ebp - 0x34]
test esi, esi
js 0x418633
mov eax, dword [0x4de0c4]
add eax, dword [0x4de0c8]
je 0x4185fe
mov dword [ebp - 0x3c], 0
call fcn.0041e030
mov dword [ebp - 0x40], eax
lock inc dword [ebp - 0x3c]
mov byte [ebp - 4], 2
or dword [ebp - 0x30], 2
cmp dword [ebp - 0x40], 0
jne 0x4185e5
call fcn.0041e030
mov dword [ebp - 0x40], eax
lock inc dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
cmp dword [esi], 0
je 0x4185fe
mov esi, dword [esi + 4]
test esi, esi
je 0x4185fe
mov ecx, esi
call dword [0x4b3390]
call esi
mov eax, dword [ebp - 0x30]
test al, 2
je 0x418633
and eax, 0xfffffffd
mov dword [ebp - 0x30], eax
or eax, 0xffffffff
mov dword [ebp - 0x40], 0
lock xadd dword [ebp - 0x3c], eax
js 0x41862f
nop dword [eax]
call fcn.004271d0
or eax, 0xffffffff
lock xadd dword [ebp - 0x3c], eax
jns 0x418620
lock inc dword [ebp - 0x3c]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x418669
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41865f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418684
push edx
push ecx
call fcn.00481131
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004810ea
mov esp, ebp
pop ebp
ret
call fcn.004861f9
int3