Function at 0x414ea3
Capabilities:
Check if file exists
Copy file
Create directory
Download url
Read file on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46eb3d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100b4
call fcn.00433cb0
mov eax, dword [0x494b64]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x100b0], eax
xor ebx, ebx
lea ecx, [ebp - 0x10044]
mov edi, str.fileLogger
inc ebx
push edi
mov dword [ebp - 4], ebx
call fcn.00406d51
lea eax, [ebp - 0x10044]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x100a8]
push eax
call fcn.0041ad09
pop ecx
pop ecx
push 0
push ebx
lea ecx, [ebp - 0x10044]
mov byte [ebp - 4], 4
call fcn.00409ecb
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x414fc4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x10074]
mov dword [ebp - 0x100b0], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x100a0], eax
call fcn.00406d51
lea eax, [ebp - 0x10074]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x100bc]
push eax
call fcn.0041ad09
pop ecx
pop ecx
lea ecx, [ebp - 0x100b0]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x100a0]
push ecx
mov ecx, dword [eax]
push str.Creating_directory____failed._Error_code_.
push 4
call fcn.00410b27
mov ecx, dword [ebp - 0x100b8]
test ecx, ecx
je 0x414fb2
call fcn.004085c6
push esi
push ebx
lea ecx, [ebp - 0x10074]
call fcn.00409ecb
jmp 0x415447
xor eax, eax
mov dword [ebp - 0x10048], 7
mov edi, str.remoteconfig.json
mov dword [ebp - 0x1004c], esi
push edi
mov word [ebp - 0x1005c], ax
call fcn.0044efcc
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1005c]
call fcn.0040a44f
push 0x477b94
lea eax, [ebp + 8]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x1002c]
push eax
call fcn.0040ed59
add esp, 0xc
cmp dword [ebp - 0x10048], 8
lea eax, [ebp - 0x1005c]
mov byte [ebp - 4], 8
cmovae eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4150bf
cmp dword [ebp - 0x10018], 8
lea ecx, [ebp - 0x1002c]
push esi
cmovae ecx, dword [ebp - 0x1002c]
lea eax, [ebp - 0x1005c]
cmp dword [ebp - 0x10048], 8
push ecx
cmovae eax, dword [ebp - 0x1005c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x4150a6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x100a8]
mov dword [ebp - 0x100a0], eax
lea eax, [ebp - 0x100a0]
push eax
lea eax, [ebp - 0x1002c]
push eax
lea eax, [ebp - 0x1005c]
push eax
push str.Failed_to_copy_local_remote_config_override_from_path__to_path_._Error_code_.
push 4
call fcn.00410ea2
jmp 0x41542d
mov edi, dword [ebp - 0x100a8]
mov ecx, edi
push str.Using_local_remote_config_override.
push 2
call fcn.004036cb
jmp 0x41514c
mov edi, dword [ebp - 0x100a8]
mov ecx, edi
push str.Looking_for_remote_config_info_for_Galaxy_Client.
push 2
call fcn.004036cb
lea eax, [ebp + 0x20]
push eax
push ecx
mov eax, esp
mov dword [eax], str.https:__remote_config.gog.com_components_webinstaller_component_version2.0.0
lea eax, [ebp - 0x10044]
push eax
call fcn.0041021b
add esp, 0xc
cmp dword [ebp - 0x10018], 8
lea ecx, [ebp - 0x1002c]
lea eax, [ebp - 0x10044]
mov byte [ebp - 4], 9
cmovae ecx, dword [ebp - 0x1002c]
cmp dword [ebp - 0x10030], 8
cmovae eax, dword [ebp - 0x10044]
xor edx, edx
push edx
push edx
push ecx
push eax
push edx
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jne 0x4153f4
push str.Downloaded_latest_remote_config_file.
push 2
mov ecx, edi
call fcn.004036cb
xor esi, esi
lea ecx, [ebp - 0x10044]
push esi
push ebx
call fcn.0042a3d6
cmp dword [ebp - 0x10018], 8
lea eax, [ebp - 0x1002c]
push esi
cmovae eax, dword [ebp - 0x1002c]
push 0x80
push 3
push esi
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x100ac], eax
lea ecx, [ebp - 0x1009c]
lea eax, [ebp - 0x100ac]
mov dword [ebp - 0x10078], esi
mov dword [ebp - 0x100a0], eax
lea eax, [ebp - 0x100a0]
push eax
call fcn.0040f6bd
push 0x10000
lea eax, [ebp - 0x10014]
mov byte [ebp - 4], 0xa
push esi
push eax
mov dword [ebp - 0x100b4], esi
call fcn.0044d440
add esp, 0xc
cmp dword [ebp - 0x100ac], 0xffffffff
jne 0x415200
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x100a0], eax
lea eax, [ebp - 0x100a0]
push eax
lea eax, [ebp - 0x1002c]
push eax
push str.Failed_to_open_remote_config_file_____error___._Installation_should_process_as_normal.
push 4
mov ecx, edi
call fcn.00410ce3
lea ecx, [ebp - 0x1009c]
call fcn.00407433
jmp 0x41542d
push esi
lea eax, [ebp - 0x100b4]
push eax
push 0xffff
lea eax, [ebp - 0x10014]
push eax
push dword [ebp - 0x100ac]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x415245
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x100a0], eax
lea eax, [ebp - 0x100a0]
push eax
lea eax, [ebp - 0x1002c]
push eax
push str.Failed_to_read_from_remote_config_file_____error___._Installation_should_proceed_as_normal.
jmp 0x4151e7
push 0
lea ecx, [ebp - 0x10034]
mov byte [ebp - 4], 0xb
mov byte [ebp - 0x1003c], 0
call fcn.004128f0
sub esp, 0x10
xor esi, esi
mov edi, esp
push esi
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x100a0], esp
mov dword [eax + 0x24], esi
push ecx
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x14]
mov dword [ebp - 0x100b8], ecx
push eax
lea eax, [ebp - 0x10014]
push eax
call fcn.0040e421
push edi
mov byte [ebp - 4], 0xd
call fcn.0041c498
add esp, 0x38
lea ecx, [ebp - 0x1003c]
call fcn.00413192
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x1003c]
push str.content
mov byte [ebp - 4], 0x10
call fcn.0040ea8a
push str.windows
mov ecx, eax
call fcn.0040ea8a
push 0x4781f0
mov ecx, eax
call fcn.0040ea8a
lea ecx, [ebp - 0x10074]
push ecx
mov ecx, eax
call fcn.0040eb3c
mov ecx, dword [ebp - 0x100b0]
push eax
call fcn.00417f08
push esi
push ebx
lea ecx, [ebp - 0x10074]
call fcn.00409ecb
push dword [ebp - 0x1003c]
lea ecx, [ebp - 0x10034]
call fcn.00418759
lea ecx, [ebp - 0x1009c]
call fcn.00407433
push esi
push ebx
lea ecx, [ebp - 0x1002c]
call fcn.0042a3d6
push esi
push ebx
lea ecx, [ebp - 0x1005c]
call fcn.0042a3d6
mov ecx, dword [ebp - 0x100a4]
test ecx, ecx
je 0x415348
call fcn.004085c6
push esi
push ebx
lea ecx, [ebp + 8]
call fcn.0042a3d6
push esi
push ebx
lea ecx, [ebp + 0x20]
call fcn.0042a3d6
xor al, al
jmp 0x41546c
cmp eax, 0x8007000e
jne 0x415402
push str.Failed_to_download_remote_config_to_file_due_to_error_E_OUTOFMEMORY.
jmp 0x415415
cmp eax, 0x800c0008
jne 0x415410
push str.Failed_to_download_remote_config_to_file_due_to_error_INET_E_DOWNLOAD_FAILURE.
jmp 0x415415
push str.Failed_to_download_remote_config_to_file_due_to_unknown_error.
push 4
mov ecx, edi
call fcn.004036cb
xor esi, esi
lea ecx, [ebp - 0x10044]
push esi
push ebx
call fcn.0042a3d6
push esi
push ebx
lea ecx, [ebp - 0x1002c]
call fcn.0042a3d6
push esi
push ebx
lea ecx, [ebp - 0x1005c]
call fcn.0042a3d6
mov ecx, dword [ebp - 0x100a4]
test ecx, ecx
je 0x415456
call fcn.004085c6
push esi
push ebx
lea ecx, [ebp + 8]
call fcn.0042a3d6
push esi
push ebx
lea ecx, [ebp + 0x20]
call fcn.0042a3d6
mov al, bl
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.00433773
mov esp, ebp
pop ebp
ret