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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452d2f
mov eax, dword fs:[0]
push eax
sub esp, 0x578
mov eax, dword [0x469090]
xor eax, esp
mov dword [esp + 0x570], eax
push ebx
push esi
push edi
mov eax, dword [0x469090]
xor eax, esp
push eax
lea eax, [esp + 0x588]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [esp + 0x374]
push ecx
push 0x104
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
mov esi, edx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea edx, [esp + 0x16c]
push edx
push 5
push str.pinst
lea eax, [esp + 0x380]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], cx
push 0xa
mov dword [esp + 0x594], ebx
mov eax, dword [edi]
push 0x40
lea edx, [esp + 0xf4]
push edx
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
push eax
call fcn.00437bcb
add esp, 0x10
push ebx
push esi
or eax, 0xffffffff
lea esi, [esp + 0x80]
call fcn.00402420
mov ecx, eax
push 1
mov eax, 0x459564
call fcn.00402190
mov ecx, eax
push 0x1a
mov eax, str.getActiveCampaigns_userId
call fcn.00402190
mov ecx, eax
lea eax, [edi + 0xd38]
mov edx, eax
lea esi, [edx + 2]
lea esp, [esp]
mov bx, word [edx]
add edx, 2
test bx, bx
jne 0x4176d0
sub edx, esi
sar edx, 1
push edx
call fcn.00402190
mov ecx, eax
push 5
mov eax, str.pid
call fcn.00402190
mov ecx, eax
lea eax, [edi + 0x2ac]
mov edx, eax
lea esi, [edx + 2]
mov bx, word [edx]
add edx, 2
test bx, bx
jne 0x417700
sub edx, esi
sar edx, 1
push edx
call fcn.00402190
mov ecx, eax
mov ebx, 7
push ebx
mov eax, str.appId
call fcn.00402190
mov ecx, eax
lea eax, [esp + 0xec]
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x417733
sub eax, esi
sar eax, 1
push eax
lea eax, [esp + 0xf0]
call fcn.00402190
cmp dword [esp + 0x8c], 8
mov eax, dword [edi + 0x9938]
mov ecx, dword [esp + 0x78]
jae 0x417767
lea ecx, [esp + 0x78]
push eax
xor esi, esi
push esi
push esi
lea eax, [esp + 0x178]
push eax
push ecx
push str.partnerUtilId
push esi
call fcn.0042ec40
add esp, 0x1c
call fcn.0042ea70
lea ecx, [esp + 0x16c]
push ecx
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417a5e
test al, 0x10
jne 0x417a5e
lea edi, [esp + 0x40]
lea eax, [esp + 0x16c]
call fcn.00407eb0
mov edi, dword [esp + 0x40]
lea edx, [esp + 0x20]
push edx
push edi
call fcn.00408b40
push edi
call fcn.00437245
mov edi, dword [esp + 0x2c]
add esp, 0xc
xor eax, eax
mov word [esp + 0x5c], ax
mov eax, edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4177f0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x60]
call fcn.00402510
mov ecx, esi
push ecx
lea edx, [esp + 0x98]
push edx
mov byte [esp + 0x598], 1
call fcn.004341b0
add esp, 8
mov byte [esp + 0x590], 3
cmp dword [esp + 0x70], 8
jb 0x417842
mov eax, dword [esp + 0x5c]
push eax
call fcn.00437245
add esp, 4
mov dword [esp + 0x70], ebx
xor ebx, ebx
xor ecx, ecx
cmp dword [esp + 0x94], 5
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
je 0x4178a6
xor edx, edx
push 0x10
mov eax, str.Cant_parse_json
lea esi, [esp + 0x28]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
call fcn.00402510
mov eax, edi
mov byte [esp + 0x590], 4
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417890
sub eax, edx
lea ecx, [esp + 0x24]
jmp 0x417940
xor eax, eax
mov word [esp + 0x40], ax
push 4
mov eax, str.data
lea esi, [esp + 0x44]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
call fcn.00402510
mov edx, esi
lea ecx, [esp + 0xc8]
mov byte [esp + 0x590], 5
call fcn.004344b0
mov byte [esp + 0x590], 3
cmp dword [esp + 0x54], 8
mov esi, eax
jb 0x4178fd
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00437245
add esp, 4
xor edx, edx
mov eax, 7
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], dx
cmp dword [esi], 6
je 0x417987
mov eax, str.Array_node_data_not_found_in
lea ecx, [esp + 0x24]
call fcn.004020f0
mov ecx, eax
mov eax, edi
mov byte [esp + 0x590], 6
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x417933
sub eax, esi
sar eax, 1
push eax
mov eax, edi
call fcn.00402190
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x9938]
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x417960
mov eax, dword [eax]
push eax
push str.ERROR
call fcn.0040c980
cmp dword [esp + 0x38], esi
jb 0x417a30
mov edx, dword [esp + 0x24]
push edx
call fcn.00437245
add esp, 4
jmp 0x417a30
mov dword [esp + 0x38], eax
xor eax, eax
mov word [esp + 0x24], ax
push 4
mov eax, str.data
lea esi, [esp + 0x28]
mov dword [esp + 0x38], ebx
call fcn.00402510
mov edx, esi
lea ecx, [esp + 0xc8]
mov byte [esp + 0x590], 7
call fcn.004344b0
mov byte [esp + 0x590], 3
cmp dword [esp + 0x38], 8
mov edi, eax
jb 0x4179da
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00437245
add esp, 4
xor edx, edx
lea esi, [esp + 0x40]
mov ecx, edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], dx
call fcn.00432680
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x598], 8
mov ecx, dword [esp + 0x20]
push edx
mov edx, esi
mov byte [esp + 0x23], 1
call fcn.00416800
mov ebx, esi
mov byte [esp + 0x590], 3
call fcn.004149a0
mov edi, dword [esp + 0x20]
push edi
call fcn.00437245
add esp, 4
lea ecx, [esp + 0x94]
mov byte [esp + 0x590], 0
call fcn.00415740
cmp byte [esp + 0x17], 0
jne 0x417c29
mov edi, dword [esp + 0x18]
xor esi, esi
mov ecx, dword [edi + 0x17f4]
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push edx
mov edx, str.pinstall
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
call fcn.00412ce0
mov esi, eax
test esi, esi
je 0x417c2d
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x40]
push eax
push ecx
push esi
call fcn.00407f40
add esp, 0xc
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [esp + 0x40]
lea edx, [esp + 0x40]
push edx
push esi
mov eax, ebx
call fcn.00408b40
push esi
call fcn.00437245
mov ebx, dword [esp + 0x4c]
add esp, 0xc
xor eax, eax
mov word [esp + 0x24], ax
mov eax, ebx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
lea edx, [eax + 2]
jmp 0x417af0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417af0
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x28]
call fcn.00402510
mov ecx, esi
push ecx
lea edx, [esp + 0x98]
push edx
mov byte [esp + 0x598], 9
call fcn.004341b0
add esp, 8
mov byte [esp + 0x590], 0xb
cmp dword [esp + 0x38], 8
jb 0x417b42
mov eax, dword [esp + 0x24]
push eax
call fcn.00437245
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x94], 6
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], cx
je 0x417bcb
mov eax, str.Cant_parse_json_from_tail
lea ecx, [esp + 0x5c]
call fcn.004020f0
mov ecx, eax
mov eax, ebx
mov byte [esp + 0x590], 0xc
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x417b80
sub eax, esi
sar eax, 1
push eax
mov eax, ebx
call fcn.00402190
mov edi, dword [edi + 0x9938]
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x417ba9
mov eax, dword [eax]
push eax
push str.ERROR
mov ecx, edi
call fcn.0040c980
cmp dword [esp + 0x70], esi
jb 0x417c0c
mov edx, dword [esp + 0x5c]
push edx
call fcn.00437245
add esp, 4
jmp 0x417c0c
lea esi, [esp + 0x5c]
lea ecx, [esp + 0x94]
call fcn.00432680
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
mov edx, eax
mov ecx, edi
mov byte [esp + 0x59c], 0xd
call fcn.00416800
mov ebx, esi
mov byte [esp + 0x590], 0xb
call fcn.004149a0
mov ebx, dword [esp + 0x40]
push ebx
call fcn.00437245
add esp, 4
lea ecx, [esp + 0x94]
mov byte [esp + 0x590], 0
call fcn.00415740
mov ebx, dword [esp + 0x1c]
lea esi, [ebx + 0x14]
push esi
mov dword [esp + 0x44], esi
mov byte [esp + 0x48], 1
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov byte [esp + 0x590], 0xe
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x417c6c
cmp byte [ebx + 0x2c], 0
jne 0x417c6c
mov edx, dword [ebx + 4]
sub edx, dword [ebx]
sar edx, 2
test edx, edx
je 0x417c6c
mov eax, dword [ecx]
mov edx, dword [eax]
push ebx
call edx
mov byte [ebx + 0x2c], 1
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [esp + 0x8c], 8
jb 0x417c8a
mov eax, dword [esp + 0x78]
push eax
call fcn.00437245
add esp, 4
mov ecx, dword [esp + 0x588]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x570]
xor ecx, esp
call fcn.0043722b
mov esp, ebp
pop ebp
ret 0xc