Function at 0x1007d83
Capabilities:
Get common file path

Disassembly:
push 0x284
push 0x1001b80
call fcn.01006094
mov eax, dword [0x100e008]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x248], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x250], eax
xor ebx, ebx
mov word [ebp - 0x224], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x28c], ebx
mov eax, dword [ebp + 0x14]
mov dword [0x10121e0], eax
mov eax, dword [ebp + 0x18]
mov dword [0x10121dc], eax
mov dword [0x1012218], ebx
mov dword [ebp - 4], ebx
cmp edx, ebx
je 0x1007f5e
push ebx
push 0x100e140
push 0x10012fc
push ebx
push ebx
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_190]
mov dword [ebp - 0x264], eax
lea ecx, [ebp - 0x228]
push ecx
push eax
push esi
call fcn.0100c664
add esp, 0x24
mov dword [ebp - 0x25c], eax
cmp eax, ebx
je 0x1007e51
mov dword [ebp - 0x240], ebx
jmp 0x1007f50
push dword [ebp - 0x228]
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_26]
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0x254], edi
cmp edi, ebx
je 0x1007f35
lea eax, [ebp - 0x230]
push eax
push edi
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_127]
add esp, 0xc
mov dword [ebp - 0x22c], eax
cmp eax, ebx
je 0x1007f22
push eax
push 0x10015f4
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1007f01
mov dword [ebp - 0x238], ebx
push dword [ebp - 0x22c]
push edi
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_140]
add esp, 0xc
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x244]
mov eax, dword [ecx + eax*4]
cmp eax, ebx
je 0x1007eee
push 0x10015c4
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
jne 0x1007f1a
mov dword [ebp - 0x240], 1
push dword [ebp - 0x244]
call dword [sym.imp.WLDAP32.dll_Ordinal_224]
pop ecx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x22c], ebx
push dword [ebp - 0x230]
push edi
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_167]
jmp 0x1007e7f
inc dword [ebp - 0x238]
jmp 0x1007ebf
mov dword [ebp - 0x230], ebx
push edi
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_27]
jmp 0x1007e5e
cmp dword [ebp - 0x228], ebx
je 0x1007f50
push dword [ebp - 0x228]
call dword [sym.imp.WLDAP32.dll_Ordinal_41]
pop ecx
mov dword [ebp - 0x228], ebx
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x240]
mov dword [eax], ecx
mov dword [0x1012e84], ebx
cmp byte [0x10121bc], bl
jne 0x1007fe7
push 0x100157c
push dword [ebp - 0x23c]
call dword [sym.imp.msvcrt.dll__wfopen]
pop ecx
pop ecx
mov dword [ebp - 0x234], eax
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
mov esi, 0x300
cmp eax, ebx
jne 0x1007f9a
push ebx
push ebx
push ebx
push esi
call edi
push dword [ebp - 0x234]
call dword [sym.imp.msvcrt.dll_fgetwc]
pop ecx
mov dword [ebp - 0x258], eax
cmp ax, 0xffff
jne 0x1007fc6
push dword [ebp - 0x234]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push ebx
push ebx
push ebx
push esi
call edi
cmp word [ebp - 0x258], 0xfeff
jne 0x1007fd8
mov byte [0x10121bc], 1
push dword [ebp - 0x234]
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
jmp 0x1007ff2
mov esi, 0x300
mov edi, dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, 0x100157c
mov dword [0x10121ec], eax
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.msvcrt.dll__wfopen]
pop ecx
pop ecx
mov dword [0x1012204], eax
cmp eax, ebx
jne 0x100801a
push ebx
push ebx
push ebx
push esi
call edi
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1008042
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x268], eax
push ebx
push ebx
push ebx
push esi
call edi
push 0x1011fb0
push ebx
push 0x1001328
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1008070
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
push ebx
push ebx
push ebx
push esi
call edi
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [0x1012234], eax
mov eax, dword [0x1012204]
mov dword [0x1012230], eax
push dword [ebp - 0x23c]
call fcn.0100a635
jmp 0x10080bf
or dword [ebp - 4], 0xffffffff
push 0xb
pop ecx
lea esi, [ebp - 0x294]
mov eax, dword [ebp - 0x250]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x1c]
call fcn.01005e07
call fcn.010060cf
ret 0x18