Function at 0x1003edd0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc68
mov eax, dword [0x100e3998]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0xc64], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xc58], eax
mov esi, edx
mov eax, dword [ebp + 0x14]
xor edx, edx
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc68], eax
mov eax, 0x800a0bb8
mov dword [ebp - 0xc5c], edi
mov dword [ebp - 0xc60], 0x12ee40
cmp eax, ecx
je 0x1004f41e
mov eax, dword [edx*8 + 0x10009ad8]
inc edx
test eax, eax
jne 0x1003ee22
cmp dword [ebp - 0xc58], 0
jne 0x1003ee47
test edi, edi
je 0x1004f430
cmp byte [0x100e406c], 0
movzx edi, cx
je 0x1003ef02
mov ecx, dword [ebp - 0xc64]
test ecx, ecx
je 0x1003ee6b
mov eax, dword [ecx]
test eax, eax
jne 0x1004f43d
push 0x400
lea eax, [ebp - 0xc54]
push eax
push edi
mov eax, dword [0x100e4064]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov edi, eax
test edi, edi
jne 0x1004f465
cmp dword [ebp - 0xc5c], 0
je 0x1003eea1
test edi, edi
jne 0x1004f4da
test ebx, ebx
je 0x1003eead
mov eax, dword [ebp - 0xc60]
mov dword [ebx], eax
mov edi, dword [ebp - 0xc68]
test edi, edi
je 0x1003eeef
xor edx, edx
xor ecx, ecx
jmp 0x1003eec0
mov eax, dword [ecx + 0x100e3200]
cmp esi, dword [eax]
je 0x1004f5b4
add ecx, 0xc
inc edx
cmp ecx, 0x24c
jb 0x1003eec0
push 0x100083b0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x1004f604
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10040f40
mov esp, ebp
pop ebp
ret
mov byte [0x100e406c], 1
call fcn.1003ef13
jmp 0x1003ee57
mov eax, dword [edx*8 + 0x10009ad4]
mov dword [ebp - 0xc60], eax
jmp 0x1003ee36
test ebx, ebx
je 0x1003eead
jmp 0x1003ee47
cmp dword [ecx + 8], 1
jne 0x1003ee6b
cmp word [eax], 3
jne 0x1003ee6b
push 0x400
lea ecx, [ebp - 0xc54]
push ecx
push dword [eax + 8]
jmp 0x1003ee78
cmp dword [ebp - 0xc58], 0
je 0x1003ee90
lea eax, [ebp - 0xc54]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [ebp - 0xc58]
mov dword [edx], eax
test eax, eax
jne 0x1003ee90
test byte [0x100e4068], 2
je 0x1004f4d0
push 0x902
push 0x8007000e
push 0x10036510
push 0x240809
jmp 0x1004f4c2
push 0x936
push 0x8007000e
push 0x10036510
push 0x24d809
mov eax, dword [0x100e711c]
push eax
call fcn.100d931d
add esp, 0x14
mov eax, 0x8007000e
jmp 0x1003eef1
mov eax, dword [0x1003656c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10036570]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10036574]
mov dword [ebp - 0xc], eax
mov ax, word [0x10036578]
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 0x1004f548
mov eax, 0x80010135
jmp 0x1003eef1
push 0x10036ea4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x1003657c
lea eax, [ebp - 0x450]
push 0x118
push eax
call fcn.100dc4da
add esp, 0x18
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0xc5c]
mov dword [ecx], eax
test eax, eax
jne 0x1003eea1
test byte [0x100e4068], 2
je 0x1004f4d0
push 0x91b
push 0x8007000e
push 0x10036510
push 0x246c09
jmp 0x1004f4c2
cmp edx, 0x31
jae 0x1003eeda
lea eax, [edx + edx*2]
push dword [eax*4 + 0x100e3204]
push dword [eax*4 + 0x100e3208]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [edi], eax
test eax, eax
jne 0x1003eeef
test byte [0x100e4068], 2
je 0x1004f4d0
push 0x92f
push 0x8007000e
push 0x10036510
push 0x24bc09
jmp 0x1004f4c2
test byte [0x100e4068], 2
je 0x1004f4d0
jmp 0x1004f4ae