Function at 0x413303
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.00420f40
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00402c9d
mov ebx, dword [ebp + 8]
mov edi, dword [edi + 4]
mov ecx, ebx
call fcn.00402c9d
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.0041a361
lea edi, [esi + 0x1e8]
push 0x40
lea eax, [ebp - 0xe0]
push edi
push eax
mov dword [ebp - 0xa0], esi
call fcn.00420f70
add esp, 0x28
add esi, 0x230
push str.C:CodeBasesisdev_srcRuntimeInstallScriptSetupNewSetupDLL.cpp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor ebx, ebx
push ebx
push edi
call fcn.0042299c
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x4136d7
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.00407a46
lea ecx, [ebp - 0x64]
call fcn.00407a46
mov edi, dword [ebp + 8]
push ebx
push str.http:__
push 7
push ebx
mov ecx, edi
call fcn.004075bb
test eax, eax
je 0x4133ea
push ebx
push str.ftp:__
push 6
push ebx
mov ecx, edi
call fcn.004075bb
test eax, eax
jne 0x41341e
lea eax, [ebp - 0x80]
mov ecx, edi
push eax
call fcn.00413728
mov esi, eax
mov ecx, esi
call fcn.00402c9d
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.00402544
cmp byte [ebp + 0x14], 0
je 0x413473
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x9c]
push eax
call fcn.00413728
mov ecx, eax
call fcn.004158bd
sub esp, 0x28
cmp eax, ebx
mov ecx, esp
mov dword [ecx], 0x4465a0
mov dword [ecx + 0x20], 0x446598
jne 0x413455
mov eax, 0x451a54
lea edx, [ebp - 5]
push ebx
push edx
push eax
call fcn.00403f24
call fcn.0041a830
add esp, 0x28
lea ecx, [ebp - 0x9c]
call fcn.00402544
lea eax, [ebp - 0x904]
push eax
sub esp, 0x1c
mov ecx, esp
push 1
pop esi
push esi
push edi
call fcn.0040710d
lea ecx, [ebp - 0x3c]
call fcn.00407a7d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x4134b7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4134a7
mov eax, dword [eax + 8]
jmp 0x4134a9
call ebx
mov ecx, dword [ebp - 4]
push 0x6ce
push eax
call fcn.004122d3
lea ecx, [ebp - 0x3c]
call fcn.004158c1
push 2
mov dword [ebp - 0x10], eax
sub esp, 0x1c
mov ecx, esp
push esi
push dword [ebp + 0xc]
call fcn.0040710d
lea ecx, [ebp - 0x64]
call fcn.004080b2
test al, al
jne 0x4134fa
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4134ea
mov eax, dword [eax + 8]
jmp 0x4134ec
call ebx
mov ecx, dword [ebp - 4]
push 0x6d3
push eax
call fcn.004122d3
mov dword [ebp - 0xc], esi
mov edi, 0x2710
lea eax, [ebp - 0x3014]
push edi
push eax
lea ecx, [ebp - 0x3c]
call fcn.004081a0
mov esi, eax
test esi, esi
je 0x4135a7
cmp esi, 0xffffffff
jne 0x41353d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41352d
mov eax, dword [eax + 8]
jmp 0x41352f
call ebx
mov ecx, dword [ebp - 4]
push 0x6db
push eax
call fcn.004122d3
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 0x41355d
mov eax, dword [ebp - 0x14]
jmp 0x413560
or eax, 0xffffffff
test eax, eax
jne 0x413580
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x413570
mov eax, dword [eax + 8]
jmp 0x413572
call ebx
mov ecx, dword [ebp - 4]
push 0x6de
push eax
call fcn.004122d3
cmp byte [ebp + 0x10], 0
je 0x413502
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.004122d3
jmp 0x413502
lea ecx, [ebp - 0x64]
call fcn.004158c1
cmp dword [ebp - 0x10], 0xffffffff
mov esi, eax
je 0x413633
cmp esi, 0xffffffff
je 0x413633
cmp dword [ebp - 0x10], esi
je 0x413633
cmp dword [ebp - 0xc], 3
jge 0x413624
lea ecx, [ebp - 0x3c]
call fcn.00407f7d
lea eax, [ebp - 0x904]
push eax
sub esp, 0x1c
mov ecx, esp
push 1
push dword [ebp + 8]
call fcn.0040710d
lea ecx, [ebp - 0x3c]
call fcn.00407a7d
test al, al
jne 0x41360d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4135fd
mov eax, dword [eax + 8]
jmp 0x4135ff
call ebx
mov ecx, dword [ebp - 4]
push 0x6f0
push eax
call fcn.004122d3
push 0
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040cf2a
and byte [ebp + 0x10], 0
inc dword [ebp - 0xc]
jmp 0x413502
mov ecx, dword [ebp - 4]
push 0x6f7
push 0xfffffffffffffffd
call fcn.004122d3
lea ecx, [ebp - 0x64]
call fcn.00407f7d
lea ecx, [ebp - 0x3c]
call fcn.00407f7d
mov esi, 0x4465c0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], esi
call fcn.00407f7d
lea ecx, [ebp - 0x5c]
call fcn.00402544
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
call fcn.00407f7d
lea ecx, [ebp - 0x34]
call fcn.00402544
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00402c9d
mov edi, dword [ebp + 8]
mov esi, dword [esi + 4]
mov ecx, edi
call fcn.00402c9d
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.0041a361
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.00420f70
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.00402c9d
mov ebx, dword [ebp + 8]
mov edi, dword [edi + 4]
mov ecx, ebx
call fcn.00402c9d
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.0041a361
mov eax, dword [ebp - 4]
add esp, 0x24
mov dword [eax + 0x6f0], 0xffffec6a
jmp 0x4136b1