Function at 0x413232
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.00420c00
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00402db3
mov ebx, dword [ebp + 8]
mov edi, dword [edi + 4]
mov ecx, ebx
call fcn.00402db3
movzx eax, byte [ebp + 0x14]
mov ebx, dword [ebx + 4]
push eax
movzx eax, byte [ebp + 0x10]
push eax
push edi
push ebx
push str.SourceFile_s_tTargetFile_s_tUseProgress_ld_tMakeSureDirExists_ld
push str.DownloadFileBegin
push str.ISSetupDLLOp
call fcn.0041a1b6
lea edi, [esi + 0x1e8]
push 0x40
lea eax, [ebp - 0xe0]
push edi
push eax
mov dword [ebp - 0xa0], esi
call fcn.00420c30
add esp, 0x28
add esi, 0x230
push str.C:CodeBasesisdevSrcRuntimeInstallScriptSetupNewSetupDLL.cpp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
push ebx
push edi
call fcn.0042265c
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x413606
and byte [ebp - 0x904], bl
mov ecx, 0x208
xor eax, eax
lea edi, [ebp - 0x903]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x3c]
stosb byte es:[edi], al
call fcn.00407a28
lea ecx, [ebp - 0x64]
call fcn.00407a28
mov edi, dword [ebp + 8]
push ebx
push str.http:__
push 7
push ebx
mov ecx, edi
call fcn.004075b9
test eax, eax
je 0x413319
push ebx
push str.ftp:__
push 6
push ebx
mov ecx, edi
call fcn.004075b9
test eax, eax
jne 0x41334d
lea eax, [ebp - 0x80]
mov ecx, edi
push eax
call fcn.00413657
mov esi, eax
mov ecx, esi
call fcn.00402db3
push dword [esi + 4]
lea eax, [ebp - 0x904]
push str.Referer:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.0040252a
cmp byte [ebp + 0x14], 0
je 0x4133a2
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x9c]
push eax
call fcn.00413657
mov ecx, eax
call fcn.004157e3
sub esp, 0x28
cmp eax, ebx
mov ecx, esp
mov dword [ecx], 0x4465a8
mov dword [ecx + 0x20], 0x4465a0
jne 0x413384
mov eax, 0x451a54
lea edx, [ebp - 5]
push ebx
push edx
push eax
call fcn.00403f62
call fcn.0041a658
add esp, 0x28
lea ecx, [ebp - 0x9c]
call fcn.0040252a
lea eax, [ebp - 0x904]
push eax
sub esp, 0x1c
mov ecx, esp
push 1
pop esi
push esi
push edi
call fcn.0040710b
lea ecx, [ebp - 0x3c]
call fcn.00407a5f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x4133e6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4133d6
mov eax, dword [eax + 8]
jmp 0x4133d8
call ebx
mov ecx, dword [ebp - 4]
push 0x6ce
push eax
call fcn.0041220c
lea ecx, [ebp - 0x3c]
call fcn.004157e7
push 2
mov dword [ebp - 0x10], eax
sub esp, 0x1c
mov ecx, esp
push esi
push dword [ebp + 0xc]
call fcn.0040710b
lea ecx, [ebp - 0x64]
call fcn.0040808d
test al, al
jne 0x413429
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x413419
mov eax, dword [eax + 8]
jmp 0x41341b
call ebx
mov ecx, dword [ebp - 4]
push 0x6d3
push eax
call fcn.0041220c
mov dword [ebp - 0xc], esi
mov edi, 0x2710
lea eax, [ebp - 0x3014]
push edi
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040817b
mov esi, eax
test esi, esi
je 0x4134d6
cmp esi, 0xffffffff
jne 0x41346c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41345c
mov eax, dword [eax + 8]
jmp 0x41345e
call ebx
mov ecx, dword [ebp - 4]
push 0x6db
push eax
call fcn.0041220c
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x3014]
push esi
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41348c
mov eax, dword [ebp - 0x14]
jmp 0x41348f
or eax, 0xffffffff
test eax, eax
jne 0x4134af
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x41349f
mov eax, dword [eax + 8]
jmp 0x4134a1
call ebx
mov ecx, dword [ebp - 4]
push 0x6de
push eax
call fcn.0041220c
cmp byte [ebp + 0x10], 0
je 0x413431
mov eax, dword [ebp - 4]
push 0x6e2
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 4]
push eax
call fcn.0041220c
jmp 0x413431
lea ecx, [ebp - 0x64]
call fcn.004157e7
cmp dword [ebp - 0x10], 0xffffffff
mov esi, eax
je 0x413562
cmp esi, 0xffffffff
je 0x413562
cmp dword [ebp - 0x10], esi
je 0x413562
cmp dword [ebp - 0xc], 3
jge 0x413553
lea ecx, [ebp - 0x3c]
call fcn.00407f58
lea eax, [ebp - 0x904]
push eax
sub esp, 0x1c
mov ecx, esp
push 1
push dword [ebp + 8]
call fcn.0040710b
lea ecx, [ebp - 0x3c]
call fcn.00407a5f
test al, al
jne 0x41353c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41352c
mov eax, dword [eax + 8]
jmp 0x41352e
call ebx
mov ecx, dword [ebp - 4]
push 0x6f0
push eax
call fcn.0041220c
push 0
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040ce3c
and byte [ebp + 0x10], 0
inc dword [ebp - 0xc]
jmp 0x413431
mov ecx, dword [ebp - 4]
push 0x6f7
push 0xfffffffffffffffd
call fcn.0041220c
lea ecx, [ebp - 0x64]
call fcn.00407f58
lea ecx, [ebp - 0x3c]
call fcn.00407f58
mov esi, 0x4465c8
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], esi
call fcn.00407f58
lea ecx, [ebp - 0x5c]
call fcn.0040252a
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
call fcn.00407f58
lea ecx, [ebp - 0x34]
call fcn.0040252a
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00402db3
mov edi, dword [ebp + 8]
mov esi, dword [esi + 4]
mov ecx, edi
call fcn.00402db3
movzx eax, byte [ebp + 0x14]
push eax
movzx eax, byte [ebp + 0x10]
push eax
push esi
push dword [edi + 4]
push str.Success
push str.Result_s_tSourceFile_s_tTargetFile_s_tUseProgress_ld_tMakeSureDirExists_ld
push str.DownloadFileEnd
push str.ISSetupDLLOp
call fcn.0041a1b6
add esp, 0x20
xor esi, esi
lea eax, [ebp - 0xe0]
push 0x40
push eax
mov eax, dword [ebp - 0xa0]
add eax, 0x1e8
push eax
call fcn.00420c30
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.00402db3
mov ebx, dword [ebp + 8]
mov edi, dword [edi + 4]
mov ecx, ebx
call fcn.00402db3
movzx eax, byte [ebp + 0x14]
push eax
movzx eax, byte [ebp + 0x10]
push eax
push edi
push dword [ebx + 4]
push esi
push str.Failure
push str.Result_s_t_tError0x_08lx_tSourceFile_s_tTargetFile_s_tUseProgress_ld_tMakeSureDirExists_ld
push str.DownloadFileEnd
push str.ISSetupDLLOp
call fcn.0041a1b6
mov eax, dword [ebp - 4]
add esp, 0x24
mov dword [eax + 0x6f0], 0xffffec6a
jmp 0x4135e0