Function at 0xb6b920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xbda362
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0xbf8f3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2f0], ecx
mov eax, dword [ebp - 0x2f0]
mov byte [eax], 0
mov ecx, dword [ebp - 0x2f0]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x2f0]
mov dword [edx + 0x20c], 0
mov eax, dword [ebp - 0x2f0]
mov dword [eax + 0x210], 0xffffffff
mov ecx, dword [ebp - 0x2f0]
add ecx, 0x214
call fcn.00b6e160
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2f0]
mov byte [ecx + 0x230], 1
mov edx, dword [ebp - 0x2f0]
mov byte [edx + 0x231], 0
mov eax, dword [ebp - 0x2f0]
mov dword [eax + 0x234], 0
mov ecx, dword [ebp - 0x2f0]
mov byte [ecx + 0x106], 0
mov edx, dword [ebp - 0x2f0]
mov byte [edx + 2], 0
cmp dword [ebp + 8], 0
jne 0xb6b9ee
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
mov al, byte [0xbfb833]
mov byte [ebp - 0x2ec], al
push 0x103
push 0
lea ecx, [ebp - 0x2eb]
push ecx
call fcn.00b95b60
add esp, 0xc
push 0x104
lea edx, [ebp - 0x2ec]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x2ec]
push ecx
call fcn.00b69440
add esp, 8
mov dword [ebp - 0x1e4], eax
cmp dword [ebp - 0x1e4], 0
jne 0xb6ba51
lea edx, [ebp - 0x2ec]
mov dword [ebp - 0x1e4], edx
push 0x2e
lea eax, [ebp - 0x2ec]
push eax
call fcn.00b69440
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0xb6ba7f
mov ecx, dword [ebp - 0x1e0]
cmp ecx, dword [ebp - 0x1e4]
jae 0xb6ba96
push 0
lea edx, [ebp - 0x2ec]
push edx
call fcn.00b693b0
add esp, 8
mov dword [ebp - 0x1e0], eax
cmp dword [ebp + 0xc], 0
je 0xb6bacb
mov eax, dword [ebp + 0xc]
push eax
push 0xbfc4e4
mov ecx, dword [ebp - 0x1e0]
push ecx
call fcn.00b98a64
add esp, 0xc
push 0
mov edx, dword [ebp - 0x1e0]
push edx
call fcn.00b693b0
add esp, 8
mov dword [ebp - 0x1e0], eax
push 0xbfc4dc
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.00b9a1b0
add esp, 8
lea ecx, [ebp - 0x2ec]
push ecx
mov edx, dword [ebp - 0x2f0]
add edx, 0x106
push edx
call fcn.00b9a1b0
add esp, 8
mov al, byte [0xbfb833]
mov byte [ebp - 0x1dc], al
push 0x103
push 0
lea ecx, [ebp - 0x1db]
push ecx
call fcn.00b95b60
add esp, 0xc
push 0
push 5
lea edx, [ebp - 0x1dc]
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0xb6bb50
push 0
push 5
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
movsx ecx, byte [ebp - 0x1dc]
test ecx, ecx
je 0xb6bd11
push 0
push 0xbfc4d4
lea ecx, [ebp - 0x2c]
call fcn.00b6cb80
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
push edx
push 0
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x48]
call fcn.00b6cae0
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
mov dword [ebp - 0x2f8], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2f8]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.00b6e330
add esp, 0xc
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x300], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x300]
push edx
mov ecx, dword [ebp - 0x2f0]
add ecx, 0x214
call fcn.00b6e1b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
call fcn.00b3b5c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00b3b5c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00b3b5c0
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x9c]
push ecx
push 0
mov edx, dword [ebp - 0x2f0]
add edx, 0x106
push edx
lea ecx, [ebp - 0x80]
call fcn.00b6cae0
mov dword [ebp - 0x304], eax
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x308], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x308]
call fcn.00b8ac40
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x30c]
mov dword [ebp - 0x310], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x310]
push edx
mov eax, dword [ebp - 0x2f0]
add eax, 0x214
push eax
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00b6e330
add esp, 0xc
mov dword [ebp - 0x314], eax
mov edx, dword [ebp - 0x314]
mov dword [ebp - 0x318], edx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x318]
call fcn.00b6e1d0
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp - 0x31c]
mov dword [ebp - 0x320], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x320]
call fcn.00b3bd90
push eax
mov ecx, dword [ebp - 0x2f0]
add ecx, 0x106
push ecx
call fcn.00b9a1b0
add esp, 8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xd4]
call fcn.00b27420
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xb8]
call fcn.00b3b5c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9c]
call fcn.00b3b5c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x80]
call fcn.00b3b5c0
mov edx, dword [ebp - 0x2f0]
add edx, 0x238
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00b94bce
mov esp, ebp
pop ebp
ret 8