Function at 0x493260
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5095cf
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5512c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x298], edi
cmp byte [eax + 0x14], bl
je 0x4932b0
add eax, 4
mov dword [edi], eax
jmp 0x493977
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
mov dword [ebp - 0x27c], esi
cmp ecx, ebx
je 0x4932d5
mov eax, dword [esi + 4]
call fcn.00493ab0
mov eax, dword [esi]
push eax
call fcn.004e4321
add esp, 4
mov dword [esi], ebx
push 0x206
lea edx, [ebp - 0x21a]
xor ecx, ecx
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push edx
mov dword [edi], ebx
mov word [ebp - 0x21c], cx
call fcn.004e8ae0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x260]
push edx
lea ecx, [ebp - 0x21c]
call fcn.004594a0
push 0xb
mov dword [ebp - 4], ebx
push str.realEnc.xml
lea ebx, [ebp - 0x260]
call fcn.0045b2d0
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493505
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x258], ebx
mov byte [ebp - 4], 5
xor ecx, ecx
mov word [ebp - 0x238], cx
mov edi, 7
push ebx
mov eax, 0x5191b4
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], ebx
call fcn.00459a30
mov dword [ebp - 0x26c], ebx
lea esi, [ebp - 0x28c]
call fcn.0046fc60
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x260]
cmp dword [eax - 4], 1
jle 0x4933e9
mov edx, dword [eax - 0xc]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.00459540
mov eax, dword [ebp - 0x260]
xor ecx, ecx
mov word [ebp - 0x254], cx
mov ecx, eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x493403
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x254]
call fcn.00459a30
lea ecx, [ebp - 0x254]
lea ebx, [ebp - 0x25c]
mov byte [ebp - 4], 9
call fcn.0045f510
mov edi, 8
mov byte [ebp - 4], 8
mov bl, al
cmp dword [ebp - 0x240], edi
jb 0x493455
mov edx, dword [ebp - 0x254]
push edx
call fcn.004e4321
add esp, 4
test bl, bl
jne 0x493535
lea esi, [ebp - 0x28c]
call fcn.0046fcb0
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x224], edi
jb 0x49348c
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.004e4321
add esp, 4
xor esi, esi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x258]
xor edx, edx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], esi
mov word [ebp - 0x238], dx
cmp eax, esi
je 0x4934bd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
cmp eax, esi
je 0x4934d3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x268]
cmp eax, esi
je 0x4934e9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x25c]
cmp eax, esi
je 0x493505
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x25c], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49352e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x493979
mov ecx, dword [ebp - 0x25c]
xor eax, eax
mov dword [ebp - 0x270], eax
test ecx, ecx
je 0x49355f
mov edx, dword [ecx]
lea eax, [ebp - 0x270]
push eax
push ecx
mov ecx, dword [edx + 0xb4]
call ecx
mov eax, dword [ebp - 0x270]
mov ebx, eax
mov dword [ebp - 0x278], ebx
test eax, eax
je 0x493641
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx]
mov eax, dword [ecx]
lea edx, [ebp - 0x268]
push edx
push 0x50e89c
push ebx
mov dword [ebp - 0x294], ebx
call eax
mov edi, dword [ebp - 0x268]
test edi, edi
jne 0x4936cf
lea esi, [ebp - 0x28c]
call fcn.0046fcb0
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [ebp - 0x238]
call fcn.0046d280
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x4935d7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x4935ed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x493603
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x49362f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
call fcn.004590c0
xor al, al
jmp 0x493979
lea esi, [ebp - 0x28c]
call fcn.0046fcb0
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea esi, [ebp - 0x238]
call fcn.0046d280
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x49367a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x493690
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x4936a6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x493505
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x25c], 0
jmp 0x493505
push 0x526c1c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x270], esi
test esi, esi
jne 0x4936f0
push 0x8007000e
call fcn.0045a310
lea edx, [ebp - 0x264]
push edx
mov byte [ebp - 4], 0xa
mov ecx, dword [edi]
mov eax, dword [ecx + 0x90]
push esi
push edi
call eax
mov byte [ebp - 4], 8
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call edi
mov eax, dword [ebp - 0x264]
test eax, eax
jne 0x493737
lea esi, [ebp - 0x28c]
call fcn.0046fcb0
mov ecx, dword [ebp - 0x26c]
push ecx
call edi
jmp 0x4935b6
mov ecx, dword [eax]
lea edx, [ebp - 0x274]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
xor ecx, ecx
mov dword [ebp - 0x270], ecx
cmp dword [ebp - 0x274], ecx
jle 0x4938a3
mov eax, dword [ebp - 0x264]
mov edx, dword [eax]
lea esi, [ebp - 0x258]
push esi
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
cmp dword [ebp - 0x258], 0
je 0x493884
mov eax, 0x526c38
lea esi, [ebp - 0x254]
call fcn.00459b40
lea ecx, [ebp - 0x238]
push ecx
mov edx, esi
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x258]
push edx
call fcn.0045fad0
mov byte [ebp - 4], 8
call fcn.0046d280
mov edx, dword [ebp - 0x238]
mov ebx, 8
cmp dword [ebp - 0x224], ebx
jae 0x4937c8
lea edx, [ebp - 0x238]
lea edi, [ebp - 0x28c]
call fcn.00459460
mov eax, str.name
lea esi, [ebp - 0x254]
call fcn.00459b40
lea eax, [ebp - 0x238]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xc
push ecx
mov ecx, dword [ebp - 0x258]
call fcn.0045fad0
mov byte [ebp - 4], 8
call fcn.0046d280
mov edx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], ebx
jae 0x493819
lea edx, [ebp - 0x238]
lea edi, [ebp - 0x288]
call fcn.00459460
mov eax, dword [ebp - 0x258]
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [ebp - 0x26c]
push ecx
push eax
call edx
mov edx, dword [ebp - 0x26c]
lea edi, [ebp - 0x284]
call fcn.00459460
mov ecx, dword [ebp - 0x27c]
lea edi, [ebp - 0x28c]
mov byte [ebp - 0x280], 0
call fcn.004939a0
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x49387e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x258], 0
mov ebx, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x270]
inc ecx
mov dword [ebp - 0x270], ecx
cmp ecx, dword [ebp - 0x274]
jl 0x49375a
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x298]
mov edx, dword [ebp - 0x290]
mov dword [ecx], eax
lea esi, [ebp - 0x28c]
mov byte [edx + 0x14], 1
call fcn.0046fcb0
mov eax, dword [ebp - 0x26c]
push eax
call edi
lea esi, [ebp - 0x238]
call fcn.0046d280
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x4938f6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x49390c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x493922
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
push ebx
call ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x49394e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x25c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x493977
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e3e00
mov esp, ebp
pop ebp
ret 4