Function at 0x1003f100
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc68
mov eax, dword [0x100e4a78]
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 0x1004f89a
mov eax, dword [edx*8 + 0x10009d58]
inc edx
test eax, eax
jne 0x1003f152
cmp dword [ebp - 0xc58], 0
jne 0x1003f177
test edi, edi
je 0x1004f8ac
cmp byte [0x100e512c], 0
movzx edi, cx
je 0x1003f232
mov ecx, dword [ebp - 0xc64]
test ecx, ecx
je 0x1003f19b
mov eax, dword [ecx]
test eax, eax
jne 0x1004f8b9
push 0x400
lea eax, [ebp - 0xc54]
push eax
push edi
mov eax, dword [0x100e5110]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_LoadStringW]
mov edi, eax
test edi, edi
jne 0x1004f8e1
cmp dword [ebp - 0xc5c], 0
je 0x1003f1d1
test edi, edi
jne 0x1004f931
test ebx, ebx
je 0x1003f1dd
mov eax, dword [ebp - 0xc60]
mov dword [ebx], eax
mov edi, dword [ebp - 0xc68]
test edi, edi
je 0x1003f21f
xor edx, edx
xor ecx, ecx
jmp 0x1003f1f0
mov eax, dword [ecx + 0x100e42a0]
cmp esi, dword [eax]
je 0x1004fa08
add ecx, 0xc
inc edx
cmp ecx, 0x24c
jb 0x1003f1f0
push 0x100084e0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x1004fa51
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041550
mov esp, ebp
pop ebp
ret
mov byte [0x100e512c], 1
call fcn.1003f243
jmp 0x1003f187
mov eax, dword [edx*8 + 0x10009d54]
mov dword [ebp - 0xc60], eax
jmp 0x1003f166
test ebx, ebx
je 0x1003f1dd
jmp 0x1003f177
cmp dword [ecx + 8], 1
jne 0x1003f19b
cmp word [eax], 3
jne 0x1003f19b
push 0x400
lea ecx, [ebp - 0xc54]
push ecx
push dword [eax + 8]
jmp 0x1003f1a8
cmp dword [ebp - 0xc58], 0
je 0x1003f1c0
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 0x1003f1c0
test byte [0x100e5114], 2
je 0x1004fa7c
push 0x921
push 0x8007000e
push 0x10036af0
push 0x248409
jmp 0x1004fa6e
mov eax, dword [0x10036b4c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10036b50]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10036b54]
mov dword [ebp - 0xc], eax
mov ax, word [0x10036b58]
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 0x1004f99f
mov eax, 0x80010135
jmp 0x1003f221
push 0x10037410
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x10036b5c
lea eax, [ebp - 0x450]
push 0x118
push eax
call fcn.100dc0cb
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 0x1003f1d1
test byte [0x100e5114], 2
je 0x1004fa7c
push 0x93a
push 0x8007000e
push 0x10036af0
push 0x24e809
jmp 0x1004fa6e
cmp edx, 0x31
jae 0x1003f20a
lea eax, [edx + edx*2]
push dword [eax*4 + 0x100e42a4]
push dword [eax*4 + 0x100e42a8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [edi], eax
test eax, eax
jne 0x1003f21f
test byte [0x100e5114], 2
je 0x1004fa7c
push 0x94e
push 0x8007000e
push 0x10036af0
push 0x253809
jmp 0x1004fa6e
test byte [0x100e5114], 2
je 0x1004fa7c
push 0x955
push 0x8007000e
push 0x10036af0
push 0x255409
mov eax, dword [0x100e811c]
push eax
call fcn.100d5b23
add esp, 0x14
mov eax, 0x8007000e
jmp 0x1003f221