Function at 0x100b5170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d2658
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x10117d48]
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
xor ebx, ebx
cmp byte [0x1011d708], bl
jne 0x100b5450
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x100b51b8
mov dword [0x1011d704], eax
cmp dword [0x101191e4], ebx
jne 0x100b543e
mov edi, 0xf
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x114], bl
call fcn.10092830
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100b5240
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x234]
call fcn.10001650
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
mov byte [ebp - 0x2c4], 0x5c
call fcn.100b4dc0
mov esi, eax
cmp esi, 0xffffffff
jne 0x100b52a7
push 1
push eax
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x234]
mov byte [ebp - 0x2c4], 0x3a
call fcn.100b4dc0
mov esi, eax
cmp esi, 0xffffffff
je 0x100b5319
push 1
push 0xffffffffffffffff
lea edx, [ebp - 0x2c4]
push edx
lea ecx, [ebp - 0x234]
inc esi
mov byte [ebp - 0x2c4], 0x2e
call fcn.100b4dc0
cmp eax, 0xffffffff
jne 0x100b52e4
push eax
push esi
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x234]
call fcn.10006c10
mov byte [ebp - 4], 3
jmp 0x100b52fe
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x234]
call fcn.10006c10
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x26c]
call fcn.10002090
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.100018b0
lea edx, [ebp - 0x2c8]
push edx
push 0x1a
push ebx
mov dword [ebp - 0x2c8], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, ebx
jl 0x100b538c
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.10092830
mov edx, dword [ebp - 0x2c8]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x218]
lea edx, [eax + 1]
jmp 0x100b5370
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100b5370
sub eax, edx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x250]
call fcn.10001650
cmp dword [ebp - 0x25c], ebx
je 0x100b546e
cmp dword [ebp - 0x240], ebx
je 0x100b546e
push 0x100f81d8
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x2a4]
push edx
call fcn.100b5050
lea ecx, [ebp - 0x26c]
push ecx
push eax
lea edx, [ebp - 0x2c0]
push edx
mov byte [ebp - 4], 5
call fcn.100b5130
push str..dmp
push eax
lea eax, [ebp - 0x288]
push eax
mov byte [ebp - 4], 6
call fcn.100048c0
add esp, 0x24
push eax
mov ecx, 0x101191d4
mov byte [ebp - 4], 7
call fcn.10002090
lea ecx, [ebp - 0x288]
call fcn.100018b0
lea ecx, [ebp - 0x2c0]
call fcn.100018b0
lea ecx, [ebp - 0x2a4]
call fcn.100018b0
lea ecx, [ebp - 0x234]
call fcn.100018b0
lea ecx, [ebp - 0x250]
call fcn.100018b0
lea ecx, [ebp - 0x26c]
call fcn.100018b0
push 0x100b4e50
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov byte [0x1011d708], 1
mov al, 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.1008efb4
mov esp, ebp
pop ebp
ret
mov esi, 0x10
cmp dword [ebp - 0x220], esi
jb 0x100b548a
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.1008efc3
add esp, 4
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
cmp dword [ebp - 0x23c], esi
jb 0x100b54b3
mov edx, dword [ebp - 0x250]
push edx
call fcn.1008efc3
add esp, 4
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
cmp dword [ebp - 0x258], esi
jb 0x100b54dc
mov eax, dword [ebp - 0x26c]
push eax
call fcn.1008efc3
add esp, 4
xor al, al
jmp 0x100b5452