Function at 0x412b30
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469193
mov eax, dword fs:[0]
push eax
mov eax, 0x4060
call fcn.00467ec0
mov eax, dword [0x4c700c]
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 - 0x404c], edx
mov esi, ecx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4050], eax
mov byte [ebp - 0x4039], 0
test ebx, ebx
je 0x412ba1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov eax, dword [ebx]
mov ecx, ebx
push esi
push 0
push 0
push 0
push 0
mov dword [ebx + 0x2c], 0
call dword [eax + 4]
push 0x60
call fcn.004492e2
add esp, 4
mov dword [ebp - 0x4020], eax
push ebx
push edi
push esi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00411bc0
mov edi, eax
mov dword [ebp - 0x4020], edi
mov dword [ebp - 4], 1
cmp byte [edi + 8], 0
push 0
jne 0x412bea
push str.InternetStream_creation_failed
mov ecx, edi
call fcn.00411480
jmp 0x412cd9
push 0
push 2
push 0
push 3
push 2
push dword [ebp - 0x404c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x401c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4048], eax
mov ecx, edi
cmp eax, 0xffffffff
jne 0x412c29
push 0
push str.FileCreate_failed
call fcn.00411480
jmp 0x412cd9
push 0x4000
lea edx, [ebp - 0x4014]
call fcn.00412a30
mov esi, eax
add esp, 4
test esi, esi
je 0x412cc6
mov eax, dword [ebp - 0x4018]
mov dword [ebp - 0x4040], eax
mov eax, dword [ebp - 0x401c]
mov dword [ebp - 0x4044], eax
nop
cmp esi, 0xffffffff
je 0x412d38
push 0
lea eax, [ebp - 0x4018]
mov dword [ebp - 0x4018], 0
push eax
push esi
lea eax, [ebp - 0x4014]
push eax
push dword [ebp - 0x4048]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x4018]
cmp eax, esi
jne 0x412d20
add dword [ebp - 0x4044], eax
lea edx, [ebp - 0x4014]
push 0x4000
adc dword [ebp - 0x4040], 0
mov ecx, edi
call fcn.00412a30
mov esi, eax
add esp, 4
test esi, esi
jne 0x412c60
push dword [ebp - 0x4048]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x4039], 1
test ebx, ebx
je 0x412ce4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov bl, byte [ebp - 0x4039]
test bl, bl
jne 0x412cf1
mov byte [edi + 8], bl
mov eax, dword [ebp - 0x4050]
lea ecx, [ebp - 0x4020]
cmp eax, ecx
je 0x412ec3
mov esi, dword [eax]
mov dword [eax], edi
test esi, esi
je 0x412ed5
mov ecx, esi
call fcn.004128f0
push 0x60
push esi
jmp 0x412ecd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FileWrite_failed
mov ecx, edi
call fcn.00411480
jmp 0x412ea6
push 0x17
mov dword [ebp - 0x4038], 0
lea ecx, [ebp - 0x4038]
push str.DownloadFile_failed_at
mov dword [ebp - 0x4028], 0
mov dword [ebp - 0x4024], 0xf
mov byte [ebp - 0x4038], 0
call fcn.0040bf30
mov eax, dword [ebp - 0x4040]
lea ecx, [ebp - 0x4068]
push eax
mov eax, dword [ebp - 0x4044]
push eax
mov byte [ebp - 4], 2
call fcn.0040d370
add esp, 8
push eax
lea ecx, [ebp - 0x4038]
mov byte [ebp - 4], 3
call fcn.0040c0e0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4054]
cmp edx, 0x10
jb 0x412ddd
mov ecx, dword [ebp - 0x4068]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412dd3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ef3
push edx
push ecx
call fcn.00449563
add esp, 8
push 0x4bd6d0
lea ecx, [ebp - 0x4038]
call fcn.0040c070
push dword [edi + 4]
lea ecx, [ebp - 0x4068]
push dword [edi]
call fcn.0040d2d0
add esp, 8
push eax
lea ecx, [ebp - 0x4038]
mov byte [ebp - 4], 4
call fcn.0040c0e0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x4054]
cmp edx, 0x10
jb 0x412e4e
mov ecx, dword [ebp - 0x4068]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412e44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412ef8
push edx
push ecx
call fcn.00449563
add esp, 8
cmp dword [ebp - 0x4024], 0x10
lea eax, [ebp - 0x4038]
push 0
cmovae eax, dword [ebp - 0x4038]
mov ecx, edi
push eax
call fcn.00411480
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4024]
cmp edx, 0x10
jb 0x412ea6
mov ecx, dword [ebp - 0x4038]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412e9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412efd
push edx
push ecx
call fcn.00449563
add esp, 8
push dword [ebp - 0x4048]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x404c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x412cd9
mov ecx, edi
call fcn.004128f0
push 0x60
push edi
call fcn.00449563
add esp, 8
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.004490d7
mov esp, ebp
pop ebp
ret
call fcn.00458a87
call fcn.00458a87
call fcn.00458a87
int3