Function at 0x10039bb0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc64
mov eax, dword [0x10042544]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xc64], eax
mov esi, edx
mov eax, dword [ebp + 0x18]
mov edx, 0x800a0bb8
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0xc58], eax
xor eax, eax
mov dword [ebp - 0xc5c], ebx
mov dword [ebp - 0xc60], 0x12ee40
lea esp, [esp]
cmp edx, ecx
je 0x10039c12
mov edx, dword [eax*8 + 0x1000cad8]
inc eax
test edx, edx
jne 0x10039c00
jmp 0x10039c1f
mov eax, dword [eax*8 + 0x1000cad4]
mov dword [ebp - 0xc60], eax
test ebx, ebx
jne 0x10039c33
cmp dword [ebp - 0xc58], ebx
jne 0x10039c33
test edi, edi
je 0x10039dd2
cmp byte [0x10042918], 0
movzx ebx, cx
jne 0x10039c4b
mov byte [0x10042918], 1
call fcn.10038930
push 0x400
lea eax, [ebp - 0xc54]
push eax
mov eax, dword [0x100428d4]
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, eax
test ebx, ebx
je 0x10039ccf
cmp dword [ebp - 0xc5c], 0
je 0x10039ccf
lea eax, [ebp - 0xc54]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0xc5c]
mov dword [ecx], eax
test eax, eax
jne 0x10039ccf
test byte [0x100428f8], 2
je 0x10039cb9
push 0x902
push 0x8007000e
push 0x1000c9d0
push 0x240809
mov eax, dword [0x10044140]
push eax
call fcn.10011220
add esp, 0x14
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003f4c0
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xc58], 0
je 0x10039dc6
test ebx, ebx
je 0x10039dc6
mov eax, dword [0x1000ca2c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x1000ca30]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1000ca34]
mov dword [ebp - 0xc], eax
mov ax, word [0x1000ca38]
push 0x20a
mov word [ebp - 8], ax
lea eax, [ebp - 0x220]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x230
lea eax, [ebp - 0x450]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, 0x105
jbe 0x10039d5e
pop edi
pop esi
mov eax, 0x80010135
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003f4c0
mov esp, ebp
pop ebp
ret
push 0x1000d240
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x1000ca3c
lea eax, [ebp - 0x450]
push 0x118
push eax
call fcn.1003a7f0
add esp, 0x18
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [ebp - 0xc58]
mov dword [edx], eax
test eax, eax
jne 0x10039dc6
test byte [0x100428f8], 2
je 0x10039cb9
push 0x91b
push 0x8007000e
push 0x1000c9d0
push 0x246c09
jmp 0x10039cab
test edi, edi
je 0x10039dd2
mov eax, dword [ebp - 0xc60]
mov dword [edi], eax
mov ebx, dword [ebp - 0xc64]
test ebx, ebx
je 0x10039e79
xor edx, edx
xor ecx, ecx
mov eax, dword [ecx + 0x100422d0]
cmp esi, dword [eax]
je 0x10039e31
add ecx, 0xc
inc edx
cmp ecx, 0x24c
jb 0x10039de4
push 0x1000c4f4
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
test eax, eax
jne 0x10039e79
test byte [0x100428f8], 2
je 0x10039cb9
push 0x936
push 0x8007000e
push 0x1000c9d0
push 0x24d809
jmp 0x10039cab
cmp edx, 0x31
jae 0x10039dfa
lea eax, [edx + edx*2]
push dword [eax*4 + 0x100422d4]
push dword [eax*4 + 0x100422d8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebx], eax
test eax, eax
jne 0x10039e79
test byte [0x100428f8], 2
je 0x10039cb9
push 0x92f
push 0x8007000e
push 0x1000c9d0
push 0x24bc09
jmp 0x10039cab
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003f4c0
mov esp, ebp
pop ebp
ret