Function at 0x4e0dd9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb74
push ebx
push esi
push edi
push 0x3e8
push dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.004474c3
push 4
lea eax, [ebp - 0x350]
push eax
mov eax, esi
push eax
call fcn.00401f65
push 5
mov edi, str.fLaC
lea esi, [ebp - 0x350]
pop ecx
xor eax, eax
mov byte [ebp - 0x34c], 0
repe cmpsb byte [esi], byte es:[edi]
je 0x4e0e84
lea eax, [ebp - 0x350]
push 0x5f35e8
push eax
call fcn.00591380
pop ecx
pop ecx
lea ecx, [ebp - 0x350]
cmp eax, ecx
jne 0x4e0e6e
mov esi, dword [ebp - 4]
cmp esi, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4e0e52
push esi
call edi
or esi, 0xffffffff
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004ddaf4
cmp esi, 0xffffffff
mov bl, al
je 0x4e0e67
push esi
call edi
mov al, bl
jmp 0x4e1333
cmp dword [ebp - 4], 0xffffffff
je 0x4e0e7d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4e1333
mov byte [ebp + 0xf], al
push 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401f65
mov al, byte [ebp - 0x18]
movzx esi, byte [ebp - 0x17]
mov bl, byte [ebp - 0x18]
and al, 0x80
cmp al, 0x80
movzx eax, byte [ebp - 0x16]
sete byte [ebp - 9]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 0x15]
shl esi, 8
add esi, eax
lea eax, [ebp - 4]
push eax
and bl, 0x7f
mov dword [ebp - 0x14], esi
call fcn.004019a4
cmp byte [ebp + 0xf], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
jne 0x4e10b4
cmp bl, 4
jne 0x4e10b4
mov ebx, dword [ebp - 4]
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.004e0753
xor ecx, ecx
push 2
pop edx
mov dword [ebp + 0xc], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0058f8c4
mov edi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
pop ecx
mov dword [ebp - 8], ebx
je 0x4e0f1c
lea ecx, [ebp - 8]
push ecx
call fcn.004e0796
mov eax, dword [ebp + 8]
push edi
add eax, 4
push str.COMMENT
push eax
mov dword [ebp - 0x1c], eax
call fcn.00436f3c
push edi
call fcn.0058f8c9
pop ecx
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 8], edi
call fcn.00401f65
cmp dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
jbe 0x4e10ab
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.004e0753
mov edi, eax
test edi, edi
je 0x4e10ab
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0058f8c4
mov dword [ebp - 0x20], eax
pop ecx
lea eax, [ebp + 0xc]
push eax
mov eax, edi
mov edi, dword [ebp - 0x20]
mov dword [ebp + 0xc], ebx
call fcn.004e0796
lea eax, [ebp - 0x248]
push eax
push 0x3d
mov edx, edi
call fcn.0056bb30
and dword [ebp + 0xc], 0
lea edi, [edi + eax*2]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x24], edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4e0fb8
sub eax, ecx
sar eax, 1
je 0x4e1001
mov edi, dword [ebp + 0xc]
lea edi, [ebp + edi*2 - 0x248]
movzx eax, word [edi]
push eax
call fcn.00591a0d
inc dword [ebp + 0xc]
mov word [edi], ax
lea eax, [ebp - 0x248]
pop ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4e0feb
sub eax, edx
sar eax, 1
cmp dword [ebp + 0xc], eax
jb 0x4e0fc8
mov edi, dword [ebp - 0x24]
cmp word [edi], 0
je 0x4e1009
inc edi
inc edi
mov ecx, 0x5f35ec
lea eax, [ebp - 0x248]
call fcn.0040106a
test eax, eax
jne 0x4e1028
mov word [ebp - 0x242], 0x4b
jmp 0x4e1083
mov ecx, str.DATE
lea eax, [ebp - 0x248]
call fcn.0040106a
test eax, eax
je 0x4e1072
mov ecx, str.DATE_EXT
lea eax, [ebp - 0x248]
call fcn.0040106a
test eax, eax
je 0x4e1072
mov ecx, str.PUBLISHER
lea eax, [ebp - 0x248]
call fcn.0040106a
test eax, eax
jne 0x4e1083
lea eax, [ebp - 0x248]
push eax
mov eax, str.PRODUCER
jmp 0x4e107e
lea eax, [ebp - 0x248]
push eax
mov eax, str.DATE
call fcn.00401016
push edi
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x1c]
call fcn.00436f3c
push dword [ebp - 0x20]
call fcn.0058f8c9
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
pop ecx
jb 0x4e0f58
mov byte [ebp + 0xf], 1
jmp 0x4e12cf
cmp bl, 6
jne 0x4e12cc
lea eax, [ebp - 4]
push eax
call fcn.0056d807
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
push eax
call fcn.0056d807
mov edi, eax
mov esi, 0x103
cmp edi, esi
mov dword [ebp - 0x1c], edi
jae 0x4e10e2
mov esi, edi
push esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401f65
cmp edi, esi
mov byte [ebp + esi - 0x148], 0
jbe 0x4e1113
push 1
xor ecx, ecx
push ecx
mov eax, edi
push ecx
sub eax, esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [ebp - 4]
push eax
call fcn.0056d807
mov ebx, eax
lea edi, [ebx + 1]
lea esi, [ebp - 0x3c]
call fcn.00434c41
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.004a3781
lea eax, [ebp - 4]
push eax
call fcn.0056d807
lea eax, [ebp - 4]
push eax
call fcn.0056d807
lea eax, [ebp - 4]
push eax
call fcn.0056d807
lea eax, [ebp - 4]
push eax
call fcn.0056d807
lea eax, [ebp - 4]
push eax
call fcn.0056d807
xor ebx, ebx
push ebx
mov edi, eax
call fcn.0058f8c9
pop ecx
call fcn.00572849
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4e12b7
push edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401f65
lea eax, [ebp - 0x968]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp - 0x1c], ebx
mov word [ebp - 0x558], bx
jbe 0x4e12b7
push esi
lea eax, [ebp - 0x148]
push str.image_jpeg
push eax
call fcn.00590c37
add esp, 0xc
test eax, eax
jne 0x4e11d4
lea eax, [ebp - 0x558]
push eax
mov eax, str..jpg
jmp 0x4e1220
push esi
lea eax, [ebp - 0x148]
push str.image_png
push eax
call fcn.00590c37
add esp, 0xc
test eax, eax
jne 0x4e11fb
lea eax, [ebp - 0x558]
push eax
mov eax, str..png
jmp 0x4e1220
push esi
lea eax, [ebp - 0x148]
push str.image_bmp
push eax
call fcn.00590c37
add esp, 0xc
test eax, eax
jne 0x4e1225
lea eax, [ebp - 0x558]
push eax
mov eax, str..bmp
call fcn.00401016
cmp word [ebp - 0x558], bx
je 0x4e12b7
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x760]
push eax
lea eax, [ebp - 0x968]
push eax
call fcn.004a21be
lea eax, [ebp - 0x760]
push eax
lea esi, [ebp - 0x10]
call fcn.0044757c
push edi
push dword [ebp - 8]
mov eax, esi
push eax
call fcn.00402005
cmp dword [ebp - 0x10], 0xffffffff
je 0x4e127a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x4e1286
mov eax, 0x5b07d8
push 1
push dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x760]
push eax
push dword [ebp + 8]
call fcn.004efa44
lea eax, [ebp - 0x760]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x10], 0xffffffff
je 0x4e12b7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call fcn.0058f8c9
pop ecx
push dword [ebp - 0x3c]
call fcn.0058f8c9
mov esi, dword [ebp - 0x14]
pop ecx
mov ebx, dword [ebp - 4]
xor eax, eax
add esi, dword [ebp - 0x30]
push 0
adc eax, dword [ebp - 0x2c]
push 0
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp byte [ebp - 9], 0
je 0x4e0e87
lea eax, [ebp - 4]
push eax
call fcn.004e0d18
push 0xa
lea ecx, [ebp - 0xb70]
push ecx
push eax
call fcn.005909ec
add esp, 0xc
lea eax, [ebp - 0xb70]
push eax
mov eax, dword [ebp + 8]
push str.LENGTH
add eax, 4
push eax
call fcn.00436f3c
cmp dword [ebp - 4], 0xffffffff
je 0x4e1330
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 8