Function at 0x426d40
Capabilities:
Delete file
Download url
Get common file path
Get file size
Read file on windows
Receive data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x440946
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x46ceb8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, 0x46ce98
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x426db1
push 0x46ce98
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [esp + 0x13c]
push 0x46ce98
push eax
mov ecx, ebp
call fcn.00406aa0
push 0
lea ecx, [esp + 0x2c]
push 0
push ecx
push 0x46ce84
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x4270bb
push eax
push 0x80
push 3
push eax
push 1
lea edx, [esp + 0x3c]
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ebx
je 0x427096
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x427096
test edi, edi
jbe 0x427096
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x24]
mov esi, eax
push 0
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427096
mov edx, dword [0x449b4c]
mov dword [esp + 0x14], edx
xor eax, eax
cmp esi, eax
mov dword [esp + 0x134], eax
je 0x426e6f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00406aa0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jl 0x427077
mov esi, dword [sym.imp.MSVCRT.dll__mbsstr]
push 0x46ce78
push eax
call esi
add esp, 8
test eax, eax
je 0x427077
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov ebx, eax
js 0x427077
cmp ebx, dword [ecx - 8]
jg 0x427077
lea eax, [ebx + ecx]
push 0x46ce6c
push eax
call esi
add esp, 8
test eax, eax
je 0x427077
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov dword [esp + 0x18], eax
js 0x427077
mov eax, dword [0x449b4c]
mov dword [esp + 0x10], eax
cmp eax, ecx
mov byte [esp + 0x134], 1
je 0x426f3e
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x426f08
mov edx, dword [0x449b50]
add eax, 0xfffffff4
cmp eax, edx
jne 0x426f0f
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x426f1f
mov eax, dword [ecx - 8]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00406aa0
jmp 0x426f3a
lea ecx, [esp + 0x10]
call fcn.00406d00
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 8]
mov edi, ebx
test ebx, ebx
jle 0x426f80
test esi, esi
jle 0x426f80
cmp ebx, esi
jle 0x426f51
mov edi, esi
lea ecx, [esp + 0x10]
call fcn.00406c60
mov eax, dword [esp + 0x10]
sub esi, edi
add edi, eax
mov edx, dword [eax - 4]
lea ecx, [esi + 1]
push ecx
inc edx
push edi
push edx
push eax
call fcn.004092c0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [eax - 8], esi
mov eax, dword [esp + 0x10]
mov ebp, dword [eax - 8]
mov edi, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
add esi, ebx
sub edi, ebx
jns 0x426f93
xor edi, edi
test esi, esi
jle 0x426fdc
cmp edi, ebp
jge 0x426fdc
lea ecx, [edi + esi]
cmp ecx, ebp
jle 0x426fa6
mov esi, ebp
sub esi, edi
lea ecx, [esp + 0x10]
call fcn.00406c60
mov eax, dword [esp + 0x10]
mov edx, ebp
sub edx, edi
lea ecx, [edi + esi]
sub edx, esi
add ecx, eax
inc edx
push edx
mov edx, dword [eax - 4]
sub edx, edi
push ecx
inc edx
add edi, eax
push edx
push edi
call fcn.004092c0
mov eax, dword [esp + 0x20]
add esp, 0x10
sub ebp, esi
mov dword [eax - 8], ebp
push 0x47c558
push 0x46ce64
lea ecx, [esp + 0x18]
call fcn.0040c280
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x13c]
push eax
mov ecx, dword [eax - 8]
push ecx
mov ecx, esi
call fcn.00406b60
mov edx, 0x46cb3c
test edx, edx
jne 0x427013
xor eax, eax
jmp 0x42701e
push 0x46cb3c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x46cb3c
push eax
mov ecx, esi
call fcn.00406b60
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 0
call fcn.00427710
mov eax, dword [esp + 0x10]
mov edx, dword [0x449b50]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x426e7a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x426e7a
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043fa08
add esp, 4
jmp 0x426e7a
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.00406a10
mov ebp, dword [esp + 0x13c]
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x46ca08
mov ecx, ebp
call fcn.004275f0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
jmp 0x4270d5
push 0x46ce4c
mov ecx, ebp
call fcn.004275f0
push 0x46ca08
mov ecx, ebp
call fcn.004275f0
xor eax, eax
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 4