Function at 0x1005bf10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x224
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x228]
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
test eax, eax
je 0x1005bf45
cmp byte [eax], 0
jne 0x1005bf78
cmp byte [0x101c7e90], 0
jne 0x1005bf78
push 0x101c7e90
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x1005bf78
push 0x10155f48
push 0x101c7e90
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1005bf78
mov edi, dword [esp + 0x18]
call fcn.1005be60
xor edx, edx
mov ecx, 0x2710
div ecx
mov esi, edx
call fcn.1005be60
xor edx, edx
mov ecx, 0x2710
div ecx
mov dword [esp + 0x14], edx
call fcn.1005be60
xor edx, edx
mov ecx, 0x64
div ecx
push 0x103
push 0
mov dword [esp + 0x18], 0x585858
mov byte [esp + 0x12c], 0
mov ebx, edx
lea edx, [esp + 0x12d]
push edx
call fcn.1012e060
add esp, 0xc
test edi, edi
je 0x1005c015
mov al, byte [edi]
test al, al
je 0x1005c015
cmp al, 0x61
jl 0x1005bfe5
cmp al, 0x7a
jg 0x1005bfe5
sub al, 0x20
mov byte [esp + 0x10], al
mov al, byte [edi + 1]
test al, al
je 0x1005c01d
cmp al, 0x61
jl 0x1005bffa
cmp al, 0x7a
jg 0x1005bffa
sub al, 0x20
mov byte [esp + 0x11], al
mov al, byte [edi + 2]
test al, al
je 0x1005c01d
cmp al, 0x61
jl 0x1005c00f
cmp al, 0x7a
jg 0x1005c00f
sub al, 0x20
mov byte [esp + 0x12], al
jmp 0x1005c01d
mov dword [esp + 0x10], 0x504d54
push 0x103
lea eax, [esp + 0x21]
push 0
push eax
mov byte [esp + 0x28], 0
call fcn.1012e060
add esp, 0xc
cmp byte [esp + 0x1c], 0
jne 0x1005c045
mov dword [esp + 0x1c], 0x706d74
test bl, 1
je 0x1005c06a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
push ebx
lea eax, [esp + 0x20]
push eax
push str._s_02u__04u__04u._s
lea ecx, [esp + 0x13c]
push ecx
jmp 0x1005c088
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
push esi
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push str._s_02u__04u__04u._s
lea edx, [esp + 0x13c]
push edx
call fcn.10127dc0
mov eax, dword [esp + 0x254]
add esp, 0x1c
test eax, eax
je 0x1005c0b0
cmp byte [eax], 0
je 0x1005c0b0
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1005c0a4
jmp 0x1005c0ca
mov eax, 0x101c7e90
mov edx, ebp
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1005c0c0
test ebp, ebp
je 0x1005c0f3
cmp byte [ebp], 0
je 0x1005c0f3
mov eax, ebp
inc eax
cmp byte [eax], 0
jne 0x1005c0d6
sub eax, ebp
je 0x1005c0f3
cmp byte [eax + ebp - 1], 0x5c
je 0x1005c0f3
push 0x10158184
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x124]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1005c100
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1005c110
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
xor edx, edx
mov ecx, ebp
call fcn.10060eb0
add esp, 8
test eax, eax
je 0x1005bf74
mov ecx, dword [esp + 0x230]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10127db1
add esp, 0x224
ret