Function at 0x1006db20
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x318]
sub esp, 0x318
push 0xfffffffffffffffe
push 0x1016df38
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x314], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov esi, 0x64
mov byte [ebp + 0x208], 0
push 0x103
push 0
lea eax, [ebp + 0x209]
push eax
call fcn.10116880
add esp, 0xc
mov ecx, dword [str..C:]
mov dword [ebp + 0x30c], ecx
mov dx, word [0x101583cc]
mov word [ebp + 0x310], dx
mov al, byte [0x101583ce]
mov byte [ebp + 0x312], al
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1006dbbb
mov byte [ebx], 0
mov eax, dword [0x1018cd4c]
cmp eax, 0xffffffff
je 0x1006dbd1
mov dword [ebp - 4], 0xfffffffe
jmp 0x1006ddd9
call fcn.1006a170
test eax, eax
je 0x1006dbfa
test ebx, ebx
je 0x1006dbec
push str.WinPE..._so_exiting.
push ebx
call fcn.1010d6a8
add esp, 8
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x1006ddd9
push 0x104
lea ecx, [ebp + 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1006dc28
test ebx, ebx
je 0x1006ddcd
push str.GetSystemDirectory_fails_
push ebx
call fcn.1010d6a8
jmp 0x1006ddca
mov dl, byte [ebp + 0x208]
mov byte [ebp + 0x310], dl
push 0
push 3
push 3
push closesocket
lea edi, [ebp + 0x30c]
call fcn.10033690
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x1006dc97
test ebx, ebx
je 0x1006ddcd
mov byte [ebp], 0
push 0x103
push 0
lea eax, [ebp + 1]
push eax
call fcn.10116880
push 0x104
lea esi, [ebp]
call fcn.10049da0
mov ecx, esi
push ecx
mov edx, edi
push edx
push str.MyCreateFileA___s__fails__Reason:__s
push ebx
call fcn.1010d6a8
add esp, 0x20
jmp 0x1006ddcd
push 0x64
call fcn.1010dced
add esp, 4
mov edi, eax
test edi, edi
jne 0x1006dcc8
test ebx, ebx
je 0x1006dcb9
push str.malloc_1__fails_
push ebx
call fcn.1010d6a8
add esp, 8
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006ddcd
push 0
lea ecx, [ebp - 0x20]
push ecx
push esi
push edi
push 0
push 0
push 0x560000
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1006dd24
mov eax, dword [edi + 8]
mov dword [0x1018cd4c], eax
push edi
call fcn.1010dc10
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1006ddcd
mov edx, dword [0x1018cd4c]
push edx
push str.returnValue___d
push ebx
call fcn.1010d6a8
add esp, 0xc
jmp 0x1006ddcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1006dd61
push edi
call fcn.1010dc10
add esi, esi
mov dword [ebp - 0x24], esi
push esi
call fcn.1010dced
add esp, 8
mov edi, eax
test edi, edi
jne 0x1006dcc8
test ebx, ebx
je 0x1006dcb9
push str.malloc_2__fails_
jmp 0x1006dcb0
test ebx, ebx
je 0x1006dda0
mov byte [ebp + 0x104], 0
push 0x103
push 0
lea ecx, [ebp + 0x105]
push ecx
call fcn.10116880
push 0x104
lea esi, [ebp + 0x104]
call fcn.10049da0
mov edx, esi
push edx
push str.DeviceIoControl_fails__Reason:__s
push ebx
call fcn.1010d6a8
add esp, 0x1c
push edi
call fcn.1010dc10
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1006ddcd
add esp, 8
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1018cd4c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x314]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x318
mov esp, ebp
pop ebp
ret