Function at 0x40b5f9
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42830d
call fcn.0041eb94
mov eax, 0x18a0
call fcn.0041ebc0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x40b622
mov eax, 0x8000ffff
jmp 0x40ba12
or dword [ebp - 0x48], 0xffffffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040c6c0
mov dword [ebp - 0x44], 0x42a4dc
mov ecx, 0x208
xor eax, eax
lea edi, [ebp - 0x8ab]
mov byte [ebp - 0x8ac], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 1
stosb byte es:[edi], al
call fcn.004030fb
push dword [esi + 0x14]
mov byte [ebp - 4], 2
push str.API:Downloader:Download__Status:_URL_S
push 2
push eax
call fcn.004032fa
add esp, 0x10
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040886d
push ebx
lea edi, [esi + 8]
push str.http:__
push 7
push ebx
mov ecx, edi
call fcn.0040ca2e
test eax, eax
je 0x40b6bf
push ebx
push str.ftp:__
push 6
push ebx
mov ecx, edi
call fcn.0040ca2e
test eax, eax
jne 0x40b6de
mov ecx, edi
call fcn.0040cb2c
push dword [edi + 4]
lea eax, [ebp - 0x8ac]
push str.Referer:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push str.ftp:__
push 6
push ebx
mov ecx, edi
call fcn.0040ca2e
neg eax
sbb al, al
push 0xc0
inc al
mov byte [ebp - 0xd], al
call fcn.0041f2b0
pop ecx
mov dword [ebp - 0x34], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x40b719
mov ecx, eax
call fcn.0040ba47
mov dword [ebp - 0x18], eax
jmp 0x40b71c
mov dword [ebp - 0x18], ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040cb2c
mov edi, dword [edi + 4]
lea eax, [ebp - 0x8ac]
push 0x80400100
push eax
push edi
mov edi, dword [ebp - 0x18]
mov ecx, edi
call fcn.0040be92
test al, al
jne 0x40b7a6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x40b757
call edi
mov edi, eax
jmp 0x40b767
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea ecx, [ebp - 0x74]
call fcn.004030fb
push edi
push str.API:Downloader:Download__Status:_Download_Error__hResult0x_lx
push 8
push eax
mov byte [ebp - 4], 4
call fcn.004032fa
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.0040886d
jmp 0x40b8a8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x1c], eax
mov edi, eax
call fcn.004030fb
push edi
push str.API:Downloader:Download__Status:_Start_Download__size_d
push 2
push eax
mov byte [ebp - 4], 5
call fcn.004032fa
add esp, 0x10
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040886d
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp - 0xd], bl
jne 0x40b833
cmp edi, ebx
jbe 0x40b7f4
cmp edi, 0xffffffff
jne 0x40b833
mov esi, dword [esi + 4]
mov edi, 0x8004d554
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 8]
lea ecx, [ebp - 0x74]
call fcn.004030fb
push edi
push str.API:Downloader:Download__Status:_Download_Error__hResult0x_lx
push 8
push eax
mov byte [ebp - 4], 6
call fcn.004032fa
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
jmp 0x40b79c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push dword [eax]
call fcn.0040ba23
sub esp, 0x10
lea eax, [ebp - 0x58]
mov edi, esp
mov dword [ebp + 8], esp
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.0040c6fb
lea ecx, [ebp - 0x48]
mov dword [edi], 0x42a4dc
call fcn.0040c088
cmp eax, ebx
jne 0x40b8bb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x40b87b
call edi
mov edi, eax
jmp 0x40b88b
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040c731
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040c16a
mov eax, edi
jmp 0x40ba12
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x88]
push eax
call fcn.0040c130
mov byte [ebp - 4], 8
mov byte [ebp - 0xe], bl
mov byte [ebp + 0xb], bl
mov byte [ebp - 0xd], bl
cmp byte [ebp + 0xb], bl
jne 0x40b9aa
cmp byte [ebp - 0xd], bl
jne 0x40b9aa
mov edi, 0x1000
lea eax, [ebp - 0x18ac]
push edi
push ebx
push eax
call fcn.0041f450
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea eax, [ebp - 0x18ac]
push edi
push eax
call fcn.0040bf86
mov edi, eax
cmp edi, 0xffffffff
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x40b96c
cmp edi, ebx
jbe 0x40b949
lea eax, [ebp - 0x34]
push ebx
push eax
lea eax, [ebp - 0x18ac]
push edi
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b940
mov eax, dword [ebp - 0x34]
jmp 0x40b943
or eax, 0xffffffff
cmp eax, ebx
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], bl
jne 0x40b96c
mov ecx, dword [esi + 4]
add dword [ebp - 0x20], edi
lea edx, [ebp - 0x30]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp eax, 1
setne byte [ebp - 0xe]
cmp edi, ebx
sete byte [ebp - 0xd]
jmp 0x40b9a1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x40b97c
call edi
jmp 0x40b988
call edi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x30]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
cmp eax, 1
setne byte [ebp + 0xb]
cmp byte [ebp - 0xe], bl
je 0x40b8d7
cmp dword [ebp - 0x48], 0xffffffff
je 0x40b9bd
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x48], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xe], bl
jne 0x40b9da
cmp byte [ebp + 0xb], bl
jne 0x40b9da
lea ecx, [ebp - 0x88]
call fcn.0040c14c
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xc]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 7
call fcn.0040c151
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040c731
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0040c16a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4