Function at 0x570740
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73f1ac
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x328], ecx
xor eax, eax
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov word [ebp - 0x27c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], 7
mov word [ebp - 0x2ac], ax
lea edx, [ebp - 0x238]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x21c]
call fcn.0065a6f0
cmp dword [ebp - 0x238], 2
jne 0x5707d6
lea ecx, [ebp - 0x27c]
call fcn.00650fa0
jmp 0x57082a
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x57082a
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5707f6
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x27c]
call fcn.00426d40
push 0x1b
push 0x7ea598
lea ecx, [ebp - 0x27c]
call fcn.0044a2e0
cmp dword [ebp - 0x268], 8
lea eax, [ebp - 0x27c]
push dword [ebp - 0x26c]
cmovae eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x2ac]
push eax
call fcn.00426d40
push 0xc
xor eax, eax
mov dword [ebp - 0x224], 0
push str.C3Config.xml
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x234]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x27c]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00426ce0
push 0xc
xor eax, eax
mov dword [ebp - 0x224], 0
push str.C3Config.sig
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
call fcn.00426d40
push ecx
lea edx, [ebp - 0x234]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.00651b80
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00426ce0
cmp dword [ebp - 0x268], 8
lea eax, [ebp - 0x27c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x27c]
push eax
call esi
test eax, eax
je 0x57107f
cmp dword [ebp - 0x298], 8
lea eax, [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x2ac]
push eax
call esi
test eax, eax
je 0x57107f
xor eax, eax
mov dword [ebp - 0x30c], 0
mov dword [ebp - 0x308], 7
mov word [ebp - 0x31c], ax
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f0], 0xf
mov byte [ebp - 0x304], al
mov dword [ebp - 0x2b8], eax
mov dword [ebp - 0x2b4], 0xf
mov byte [ebp - 0x2c8], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x31c]
cmp dword [ebp - 0x268], 8
push dword [ebp - 0x26c]
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x27c]
cmovae eax, dword [ebp - 0x27c]
push eax
call fcn.00426d40
xorps xmm0, xmm0
mov dword [ebp - 0x2e0], 0x857a90
movq qword [ebp - 0x25c], xmm0
mov dword [ebp - 0x2dc], 0x180
mov dword [ebp - 0x2d8], 0x857a8c
mov dword [ebp - 0x2d4], 1
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x258], 0
mov byte [ebp - 0x254], 0
mov dword [ebp - 0x25c], 0
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x25c]
call fcn.00654850
mov ebx, dword [sym.imp.ole32.dll_CoUninitialize]
test al, al
jne 0x570a5b
push str.Could_not_initialize_C3Config_sig_file_as_XML_data
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x28
call fcn.0056c500
add esp, 0x18
jmp 0x570fa3
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0xf
mov byte [ebp - 0x294], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x250]
push 0x13
xor eax, eax
mov dword [ebp - 0x240], 0
push str._Signature_FileSize
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
call fcn.00426d40
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x25c]
call fcn.006553c0
test al, al
je 0x570b0f
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
push dword [ebp - 0x25c]
cmovae ecx, dword [ebp - 0x234]
lea edx, [ebp - 0x294]
call fcn.0064aab0
add esp, 4
lea ecx, [ebp - 0x234]
call fcn.00426ce0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 8
call fcn.00426ce0
cmp dword [ebp - 0x280], 0x10
lea ecx, [ebp - 0x2b0]
push 0
lea eax, [ebp - 0x294]
mov dword [ebp - 0x2b0], 0
cmovae eax, dword [ebp - 0x294]
push ecx
push eax
call fcn.007034f6
add esp, 0xc
mov dword [ebp - 0x2e8], eax
xor eax, eax
mov dword [ebp - 0x2e4], edx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
push 0x13
push str._Signature_CheckSum
mov word [ebp - 0x250], ax
call fcn.00426d40
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x25c]
call fcn.006553c0
test al, al
je 0x570bfa
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
push dword [ebp - 0x25c]
cmovae ecx, dword [ebp - 0x234]
lea edx, [ebp - 0x2c8]
call fcn.0064aab0
add esp, 4
lea ecx, [ebp - 0x234]
call fcn.00426ce0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 8
call fcn.00426ce0
lea ecx, [ebp - 0x320]
call fcn.0066bb20
test eax, eax
je 0x570c4c
push eax
push str.Signature_validation_failed_for_C3Config_file__OCE_Return_status_:__lu
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x28
call fcn.0056c500
add esp, 0x1c
jmp 0x570f4a
xorps xmm0, xmm0
mov dword [ebp - 0x23c], 0
movq qword [ebp - 0x244], xmm0
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x23c], 0
mov dword [ebp - 0x244], 0
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x244]
call fcn.00654850
test al, al
jne 0x570cbe
push str.Could_not_initialize_C3Config_xml
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x28
call fcn.0056c500
add esp, 0x18
jmp 0x570f1f
push 0x3d
xor eax, eax
mov dword [ebp - 0x21c], 0
push str._C3Config_config_namespace__namewam.bootstrapper__property
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 7
mov word [ebp - 0x340], ax
call fcn.00426d40
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x244]
call fcn.00655ad0
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 0x14
call fcn.00426ce0
mov esi, dword [ebp - 0x238]
test esi, esi
je 0x570ee8
mov ebx, dword [ebp - 0x21c]
test ebx, ebx
je 0x570ee8
xor edi, edi
test ebx, ebx
jle 0x570f0b
nop word [eax + eax]
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x21c], 0
push esi
mov dword [eax], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x244]
call fcn.00655df0
push ecx
mov byte [ebp - 4], 0x17
mov ecx, esp
mov eax, dword [ebp - 0x21c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x264], xmm0
mov dword [ecx], eax
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x570db2
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x244]
call fcn.00656100
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0x19
push eax
mov eax, dword [ebp - 0x21c]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x570e07
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea ecx, [ebp - 0x244]
call fcn.006588d0
push 4
xor eax, eax
mov dword [ebp - 0x348], 0
push str.name
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x344], 7
mov word [ebp - 0x358], ax
call fcn.00426d40
lea eax, [ebp - 0x358]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x264]
call fcn.005541a0
push eax
mov eax, dword [ebp - 0x328]
mov ecx, dword [eax + 0x18]
call fcn.005540a0
lea ecx, [ebp - 0x234]
cmp eax, ecx
je 0x570e8c
cmp dword [ebp - 0x220], 8
push dword [ebp - 0x224]
cmovae ecx, dword [ebp - 0x234]
push ecx
mov ecx, eax
call fcn.00426d40
lea ecx, [ebp - 0x358]
call fcn.00426ce0
lea ecx, [ebp - 0x234]
call fcn.00426ce0
mov eax, dword [ebp - 0x264]
push dword [eax + 4]
lea eax, [ebp - 0x264]
push eax
mov ecx, eax
call fcn.00551570
push 0x40
push dword [ebp - 0x264]
call fcn.006d0bf7
mov byte [ebp - 4], 0x14
add esp, 8
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x570edd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
cmp edi, ebx
jl 0x570d60
jmp 0x570f0b
push str.No_wam_property_node_found_in_C3Config_xml
push 0x799430
push 0x799430
push str.ApplicationContext
push 0x799430
push 0x28
call fcn.0056c500
add esp, 0x18
mov byte [ebp - 4], 0xf
test esi, esi
je 0x570f19
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov ebx, dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0x1b
mov esi, dword [ebp - 0x240]
test esi, esi
je 0x570f35
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor esi, esi
cmp byte [ebp - 0x23c], 0
je 0x570f40
call ebx
test esi, esi
je 0x570f4a
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x280]
cmp edx, 0x10
jb 0x570f88
mov ecx, dword [ebp - 0x294]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x570f7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5710b1
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0xf
mov byte [ebp - 0x294], 0
mov byte [ebp - 4], 0x1c
mov esi, dword [ebp - 0x258]
test esi, esi
je 0x570fb9
mov eax, dword [esi]
push esi
call dword [eax + 8]
xor esi, esi
cmp byte [ebp - 0x254], 0
je 0x570fc4
call ebx
test esi, esi
je 0x570fce
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edx, dword [ebp - 0x2b4]
cmp edx, 0x10
jb 0x571008
mov ecx, dword [ebp - 0x2c8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x570ffe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5710b1
push edx
push ecx
call fcn.006d0bf7
add esp, 8
mov edx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 0xf
mov byte [ebp - 0x2c8], 0
cmp edx, 0x10
jb 0x571059
mov ecx, dword [ebp - 0x304]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x57104f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5710b1
push edx
push ecx
call fcn.006d0bf7
add esp, 8
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 0xf
mov byte [ebp - 0x304], 0
call fcn.00426ce0
lea ecx, [ebp - 0x2ac]
call fcn.00426ce0
lea ecx, [ebp - 0x27c]
call fcn.00426ce0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
call fcn.006f1bea
int3