Function at 0x1001d8a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a2799
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x100cc020]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push esi
push edi
mov eax, dword [0x100cc020]
xor eax, esp
push eax
lea eax, [esp + 0x4d0]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov edi, edx
cmp esi, ebx
je 0x1001db99
cmp word [esi], bx
je 0x1001db99
cmp edi, ebx
je 0x1001db99
cmp word [edi], bx
je 0x1001db99
lea eax, [esp + 0x2bc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1001d92b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
jmp 0x1001db9b
lea ecx, [esp + 0xb4]
push ecx
push ebx
push edi
lea edx, [esp + 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1001d91f
push ebx
lea eax, [esp + 0xb8]
push eax
push esi
call dword [0x100ceef0]
test eax, eax
je 0x1001d91f
lea ecx, [esp + 0x5c]
push ecx
call fcn.10008740
mov ecx, eax
mov dword [esp + 0x4d8], ebx
lea eax, [esp + 0x14]
mov edx, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.1000d890
add eax, 4
push eax
lea ecx, [esp + 0x9c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x4d8], 2
call fcn.100087a0
lea edx, [esp + 0x3c]
push edx
call fcn.10008740
mov ecx, eax
mov byte [esp + 0x4d8], 3
lea eax, [esp + 0x14]
lea edx, [esp + 0xb4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.1000d890
add eax, 4
push eax
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4d8], 5
call fcn.100087a0
lea eax, [esp + 0xb4]
mov dword [esp + 0x30], eax
mov eax, 0x10
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp dword [esp + 0xb0], eax
jb 0x1001da23
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x1c], ecx
jmp 0x1001da2e
lea edx, [esp + 0x9c]
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x94], eax
jb 0x1001da44
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
jmp 0x1001da4f
lea ecx, [esp + 0x80]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov eax, 0x24
xor esi, esi
mov ecx, eax
and ecx, 3
je 0x1001da6a
sub eax, ecx
add eax, 4
mov ecx, dword [esp + esi + 0x2c]
mov dword [esp + esi + 0x34], eax
cmp ecx, ebx
jne 0x1001da7b
mov ecx, 0x100aa788
lea edi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x1001da80
sub ecx, edi
sar ecx, 1
add esi, 4
lea eax, [eax + ecx*2 + 2]
cmp esi, 8
jne 0x1001da5e
xor edx, edx
lea ecx, [ecx]
mov ecx, eax
and ecx, 3
je 0x1001daac
sub eax, ecx
add eax, 4
mov esi, eax
mov eax, dword [esp + edx + 0x1c]
mov dword [esp + edx + 0x14], esi
cmp eax, ebx
jne 0x1001dabf
mov eax, 0x100ab5f4
mov ecx, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x1001dac4
sub ecx, edi
add edx, 4
lea eax, [ecx + esi + 1]
cmp edx, 8
jne 0x1001daa0
lea esi, [esp + 0x24]
call fcn.100089c0
mov byte [esp + 0x4d8], 6
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov edi, eax
cmp edi, ebx
je 0x1001db5a
xor eax, eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], eax
lea ecx, [esp + 0x34]
push ecx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
push 4
lea ecx, [esp + 0x34]
mov dword [edi + 0x20], eax
call fcn.1001dbd0
lea edx, [esp + 0x3c]
push edx
push 0xc
mov eax, 1
lea ecx, [esp + 0x3c]
call fcn.1001dbd0
lea eax, [esp + 0x24]
push eax
push ebx
xor eax, eax
lea ecx, [esp + 0x34]
call fcn.1001dc10
lea ecx, [esp + 0x2c]
push ecx
push 8
mov eax, 1
lea ecx, [esp + 0x3c]
call fcn.1001dc10
add esp, 0x20
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
call fcn.100089e0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x4d8], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x98]
mov dword [esp + 0x4d8], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
jmp 0x1001dba3
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x4d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.1009ecb4
mov esp, ebp
pop ebp
ret