Function at 0x55f530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fb014
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov eax, dword [ebx + 0x2c]
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
je 0x55f9a5
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [ebx + 0x18]
mov eax, 1
cmp ecx, eax
je 0x55f597
cmp dword [ebx + 0x20], eax
je 0x55f597
cmp dword [ebx + 0x24], 0xff
jne 0x55f7f3
cmp dword [ebx + 0x28], esi
jne 0x55f7f3
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
push ecx
push esi
push 0x1ddbfa0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x1c]
call fcn.005c4bd5
mov dword [ebp - 4], esi
push 0x10
mov byte [ebp - 4], 1
call fcn.005c4255
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
cmp ecx, esi
mov byte [ebp - 4], 2
je 0x55f5f5
lea eax, [ebp - 0x15c]
push 0x1001
push eax
call fcn.005c4c96
mov edi, eax
jmp 0x55f5f7
xor edi, edi
mov edx, dword [ebx + 0x2c]
mov byte [ebp - 4], 1
cmp word [edx + 0xc], 1
jne 0x55f7a3
mov eax, dword [edx + 0x20]
cmp eax, 0xff
jae 0x55f7a3
cmp eax, esi
jne 0x55f66c
mov cx, word [edx + 0xe]
xor eax, eax
cmp cx, 1
jne 0x55f62c
mov eax, 2
cmp cx, 4
jne 0x55f637
mov eax, 0x10
cmp cx, 8
jne 0x55f642
mov eax, 0x100
cmp cx, 0x10
jne 0x55f653
cmp dword [edx + 0x10], 3
jne 0x55f653
mov eax, 3
cmp cx, 0x18
jne 0x55f65b
xor eax, eax
cmp cx, 0x20
jne 0x55f66c
cmp dword [edx + 0x10], 3
jne 0x55f66c
mov eax, 3
mov edx, dword [ebx + 0x30]
lea ecx, [eax*4 + 0x36]
mov dword [ebp - 0x36], ecx
add edx, 0xe
lea ecx, [ebp - 0x40]
mov word [ebp - 0x40], 0x4d42
mov dword [ebp - 0x3e], edx
mov word [ebp - 0x3a], si
mov word [ebp - 0x38], si
mov eax, dword [edi]
push 0xe
push ecx
mov ecx, edi
call dword [eax + 0x38]
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [edi]
push eax
push ecx
mov ecx, edi
call dword [edx + 0x38]
cmp edi, esi
je 0x55f6b6
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
or edi, 0xffffffff
mov dword [ebp - 4], edi
call fcn.005c4c13
push ecx
lea eax, [ebp - 0x15c]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.005c4582
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], edi
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0x108]
push eax
call fcn.00540360
mov esi, eax
add esp, 8
test esi, esi
je 0x55f9a5
push 0
push 0
push 0
push 0x1d74294
call dword [sym.imp.GDI32.dll_CreateICA]
mov edi, eax
push 0x58
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esi + 0x88]
mov dword [ebp + 8], eax
call fcn.005545f0
and eax, 0xffff
xor edx, edx
imul eax, dword [ebx + 0x10]
push 0x5a
push edi
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, eax
lea eax, [ecx + ecx*4]
div dword [ebp + 8]
mov ecx, eax
mov eax, 0x51eb851f
mul ecx
shr edx, 5
mov dword [esi + 0x1c], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esi + 0x88]
mov dword [ebp + 8], eax
call fcn.00554620
and eax, 0xffff
xor edx, edx
imul eax, dword [ebx + 0x14]
push edi
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, eax
lea eax, [ecx + ecx*4]
div dword [ebp + 8]
mov edx, eax
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov dword [esi + 0x20], edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xd84
push str.E:e_link_work_static_link_static_libs_sourceOStarLibOStarOCX.LibRtfReader.CPP
push str.Error:_s_d_n
call fcn.00453b30
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
call fcn.005c4c13
jmp 0x55f9a5
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x260]
push ecx
push esi
push 0x1dde2c8
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x2c]
call fcn.005c4c41
push esi
lea eax, [ebp - 0x15c]
mov edi, 5
push 0x1001
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.005c4df3
test eax, eax
jne 0x55f852
push 0xdc5
push str.E:e_link_work_static_link_static_libs_sourceOStarLibOStarOCX.LibRtfReader.CPP
push str.Error:_s_d_n
call fcn.00453b30
add esp, 0xc
jmp 0x55f996
lea ecx, [ebp - 0x1c]
call fcn.005c4bd5
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x2c]
push ecx
push edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.005c4f4a
mov dword [ebp - 4], edi
call fcn.005c4c13
lea ecx, [ebp - 0x2c]
call fcn.005c500e
lea ecx, [ebp - 0x48]
call fcn.005c4bd5
push 0x98
mov byte [ebp - 4], 0xa
call fcn.005c4255
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, esi
mov byte [ebp - 4], 0xb
je 0x55f8ff
push esi
push ecx
lea eax, [ebp - 0x15c]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.005c4582
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.004bd7b0
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov ecx, dword [ecx]
mov edx, dword [ecx]
call dword [edx + 0x108]
mov edx, dword [esi]
sub esp, 0x10
mov ecx, esp
mov byte [ebp - 4], 0xb
push eax
mov dword [ecx], edx
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
mov edx, dword [esi + 8]
mov dword [ecx + 8], edx
mov edx, dword [esi + 0xc]
mov dword [ecx + 0xc], edx
mov ecx, edi
call fcn.00538980
mov esi, eax
mov dword [ebp - 4], 5
call fcn.005c4c13
mov ecx, dword [ebx + 0x10]
mov eax, 0x10624dd3
imul ecx, dword [ebx]
mul ecx
shr edx, 6
mov dword [esi + 0x1c], edx
mov edx, dword [ebx + 0x14]
imul edx, dword [ebx + 4]
mov eax, 0x10624dd3
lea ecx, [ebp - 0x2c]
mul edx
shr edx, 6
mov dword [esi + 0x20], edx
mov dword [ebp - 4], 0xffffffff
call fcn.005c4d36
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.005c4d36
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4