Function at 0x4f6ee6
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x9f8
lea ebp, [esp - 4]
mov eax, dword [0x6ba0d0]
xor eax, ebp
mov dword [ebp + 0x9f8], eax
push 0x1bc
mov eax, 0x636c80
call fcn.0058c120
mov esi, ecx
mov dword [ebp - 0x44], esi
mov eax, dword [esi + 0x334]
add eax, 0xfbc
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
mov dword [ebp - 0x38], 0x19
call fcn.00402e5b
xor ebx, ebx
push ebx
push 0x3a
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0040bb17
cmp eax, 0xffffffff
je 0x4f6fad
push ebx
push 0x3a
lea ecx, [ebp - 0x1c]
call fcn.0040bb17
inc eax
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d75e
push dword [eax]
call fcn.0058e120
pop ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [ebp - 0x38], eax
call fcn.00401493
push ebx
push 0x3a
lea ecx, [ebp - 0x1c]
call fcn.0040bb17
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403286
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00401dd7
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00401493
lea ecx, [ebp - 0xe8]
call fcn.0042ae29
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 5
call fcn.0042cf51
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ebp + 0xa04]
push eax
mov byte [ebp - 4], 6
call fcn.0042ad01
mov eax, dword [esi + 0x334]
pop ecx
pop ecx
add eax, 0xfc8
push eax
lea ecx, [ebp - 0x40]
call fcn.00429ad9
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x188]
mov byte [ebp - 4], 7
call fcn.004293d6
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.004287e0
lea eax, [ebp + 0xa0c]
push eax
lea ecx, [ebp - 0x180]
call fcn.00401dd7
push 0x64a018
lea ecx, [ebp - 0x17c]
call fcn.00401e24
mov eax, dword [esi + 0x2f4]
sub eax, ebx
je 0x4f717c
dec eax
jne 0x4f73b3
lea eax, [ebp + 0x3e0]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
ja 0x4f7065
cmp eax, ebx
jne 0x4f7082
push ecx
mov dword [ebp - 0x20], esp
mov ecx, esp
push str.Error_getting_temp_directory
call fcn.00402035
mov ecx, dword [esi + 0x334]
push 3
call fcn.00415cb2
lea eax, [ebp + 0x7f0]
push eax
push ebx
push 0x6685fc
lea eax, [ebp + 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
jne 0x4f70bd
push ecx
mov dword [ebp - 0x20], esp
mov ecx, esp
push str.Error_getting_temp_filename
call fcn.00402035
mov ecx, dword [esi + 0x334]
push 3
call fcn.00415cb2
lea eax, [ebp + 0x7f0]
push eax
call fcn.0058c9ba
pop ecx
mov edi, eax
lea eax, [ebp + 0x7f0]
push eax
push eax
call fcn.0058c9ba
pop ecx
push eax
lea eax, [ebp + 0x5e8]
push eax
call fcn.0058d03f
add esp, 0xc
push 0x70
pop eax
push 0x6e
mov word [ebp + edi*2 + 0x5e2], ax
pop eax
push 0x67
mov word [ebp + edi*2 + 0x5e4], ax
pop eax
push ebx
lea ecx, [ebp]
mov word [ebp + edi*2 + 0x5e6], ax
call fcn.0050d7a0
push dword [esi + 0x3f4]
mov ecx, dword [esi + 0x334]
lea eax, [ebp]
push eax
mov byte [ebp - 4], 0x12
call fcn.00411a6d
push 4
lea eax, [ebp + 0x5e8]
push eax
lea ecx, [ebp]
call fcn.0050fc70
lea eax, [ebp + 0x5e8]
push eax
lea ecx, [ebp - 0x34]
call fcn.00402035
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 0x13
call fcn.0042ddfe
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00401493
lea ecx, [ebp]
mov byte [ebp - 4], 6
call fcn.00407758
jmp 0x4f73b3
push str.utf_8
lea ecx, [ebp - 0x2c]
call fcn.00402035
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 8
call fcn.004295db
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.00401493
push str.multipart_mixed
lea eax, [ebp + 0xa08]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.0042d6cf
mov eax, dword [esi + 0x334]
cmp byte [eax + 0x7a0], 0
je 0x4f73b3
lea eax, [ebp + 0x1d8]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
ja 0x4f71f0
cmp eax, ebx
jne 0x4f720d
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push str.Error_getting_temp_directory
call fcn.00402035
mov ecx, dword [esi + 0x334]
push 3
call fcn.00415cb2
lea eax, [ebp + 0x7f0]
push eax
push ebx
push 0x6685fc
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
jne 0x4f7248
push ecx
mov dword [ebp - 0x28], esp
mov ecx, esp
push str.Error_getting_temp_filename
call fcn.00402035
mov ecx, dword [esi + 0x334]
push 3
call fcn.00415cb2
call fcn.0054f69d
push eax
lea ecx, [ebp - 0x14]
call fcn.004018a6
push dword [esi + 0x3f4]
mov ecx, dword [esi + 0x334]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 9
call fcn.004189d5
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], esp
mov ecx, esp
push eax
call fcn.00402e5b
push ecx
lea eax, [ebp + 0x7f0]
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
mov byte [ebp - 4], 0xa
call fcn.00402035
mov byte [ebp - 4], 9
mov ecx, dword [esi + 0x334]
call fcn.00417a27
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.004f4d54
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00402e5b
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xd
call fcn.00401493
lea ecx, [ebp - 0x94]
call fcn.0042cbf4
push 1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xe
call fcn.0042724e
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x94]
call fcn.00429e3c
push str.text_plain
lea ecx, [ebp - 0x30]
call fcn.00402035
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xf
call fcn.00401dd7
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xe
call fcn.00401493
push dword [esi + 0x3f4]
mov ecx, dword [esi + 0x334]
lea eax, [ebp - 0x24]
push eax
call fcn.0040e2ec
push str..sti
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x10
call fcn.0040e47a
add esp, 0xc
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x11
call fcn.00401dd7
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xe
call fcn.00401493
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x50], ebx
call fcn.0042dde4
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xd
call fcn.004286ab
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401493
mov esi, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x38]
lea ecx, [ebp - 0xe8]
push ebx
push ebx
push ebx
push esi
mov byte [ebp - 4], 0x14
call fcn.0042af36
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0042b342
lea eax, [ebp + 0x7f0]
push eax
mov dword [ebp - 4], 6
call fcn.0058f79d
lea eax, [ebp + 0x5e8]
push eax
call fcn.0058f79d
pop ecx
pop ecx
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 5
call fcn.004f256d
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 3
call fcn.0042a17d
lea ecx, [esi - 0x10]
call fcn.00401493
mov ecx, dword [ebp + 0xa04]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0xa08]
add ecx, 0xfffffff0
call fcn.00401493
mov ecx, dword [ebp + 0xa0c]
add ecx, 0xfffffff0
call fcn.00401493
mov al, 1
jmp 0x4f7619
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9f8]
xor ecx, ebp
call fcn.0058c0de
add ebp, 0x9fc
leave
ret 0xc