Function at 0x11047010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x111ec774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x190
push 1
mov dword [ebp - 0x1c], esi
call fcn.1116406b
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x11047054
push 0x2b3e
push 0x1119d450
push 0x11196004
call fcn.11029a70
add esp, 0xc
mov eax, 0x4e
mov word [ebx], ax
call fcn.1103b270
mov word [ebx + 2], ax
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0xc]
call fcn.1105eb10
test eax, eax
je 0x11047078
push 7
jmp 0x1104707a
push 5
call fcn.1102ad70
add esp, 4
mov edi, eax
call fcn.11143a20
cmp eax, 0x37
jne 0x110470c5
push 0x111994f4
push edi
call fcn.11081e70
add esp, 8
push 0x111953e8
test eax, eax
jne 0x110470b9
lea edx, [ebp - 0x14]
push 0x1119ee38
push edx
call dword [sym.imp.uSEr32.dll_wsprintfA]
add esp, 0xc
jmp 0x110470f2
push edi
push 0x1119e6b0
lea eax, [ebp - 0x14]
push eax
jmp 0x110470e9
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 0xc]
call fcn.1105eb10
test eax, eax
mov eax, 0x111953f0
jne 0x110470de
mov eax, 0x111953f8
push eax
push edi
push 0x1119e6b0
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.uSEr32.dll_wsprintfA]
add esp, 0x10
movsx eax, byte [0x11196ab3]
push eax
mov esi, 0x11196ab3
call fcn.11166654
add esp, 4
cmp eax, 0x56
jne 0x11047111
mov esi, 0x11196ab4
movsx ecx, byte [esi]
push ecx
call fcn.111648ed
add esp, 4
test eax, eax
je 0x11047133
movsx edx, byte [esi + 1]
inc esi
push edx
call fcn.111648ed
add esp, 4
test eax, eax
jne 0x11047121
cmp byte [esi], 0x2e
jne 0x110471e4
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.111648ed
add esp, 4
test eax, eax
je 0x11047162
mov edi, edi
movsx ecx, byte [esi + 1]
inc esi
push ecx
call fcn.111648ed
add esp, 4
test eax, eax
jne 0x11047150
movsx edx, byte [esi]
push edx
call fcn.11166654
add esp, 4
cmp eax, 0x44
jne 0x11047174
inc esi
movsx eax, byte [esi]
push eax
call fcn.11166654
add esp, 4
cmp eax, 0x46
jne 0x110471a3
lea edi, [ebp - 0x14]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x11047190
mov cx, word [0x1119ee34]
mov word [edi], cx
inc esi
push 0
push esi
lea ecx, [ebp - 0x18]
call fcn.11146a90
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x110471b3
lea edi, [ebp - 0x14]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x110471c2
mov edx, dword [ebp - 0x18]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.11162777
add esp, 4
push 0
push 0x10
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.111433d0
add esp, 0x10
push 0x80
lea esi, [ebx + 0x14]
push esi
push 0
call dword [sym.imp.KeRneL32.DLl_GetModuleFileNameA]
push 0x5c
push esi
call fcn.111640b0
mov byte [eax], 0
mov eax, esi
add esp, 8
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x11047220
sub eax, ecx
mov edi, eax
push 0x80
lea edx, [edi + esi + 1]
push edx
call dword [sym.imp.KeRneL32.DLl_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
lea eax, [edi + eax + 0x16]
push 1
push eax
mov eax, dword [edx + 0x44]
push ebx
call eax
push ebx
call fcn.11163aa5
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.11162bb7
mov esp, ebp
pop ebp
ret