Function at 0x408820
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebefd
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x52c0cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x168], ebx
mov eax, dword [ebp + 0x10]
lea esi, [ebx + 0x6c]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x16c], esi
call fcn.00468e0b
add esp, 4
test eax, eax
je 0x408893
push eax
call fcn.004689e1
add esp, 4
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x54]
mov eax, dword [ebp - 0x114]
cmp ecx, eax
je 0x4088b7
push 0xffffffffffffffff
push 0
push eax
call fcn.00407230
mov eax, dword [ebp - 0x114]
cmp dword [eax + 0x14], 8
jb 0x4088bf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x10], 0
jne 0x4088d3
xor edi, edi
jmp 0x408be7
mov ecx, dword [ebp - 0x114]
push 2
sub esp, 8
call fcn.004094a0
cmp eax, 0xffffffff
je 0x40892d
mov ecx, dword [ebp - 0x114]
push eax
push 0
lea eax, [ebp - 0x15c]
push eax
call fcn.00409140
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00408e00
mov eax, dword [ebp - 0x148]
cmp eax, 8
jb 0x40892d
inc eax
lea ecx, [ebp - 0x15c]
push eax
push dword [ebp - 0x15c]
call fcn.00407100
mov dword [ebp - 0x148], 0xf
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x15c], 0
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov byte [ebp - 4], 4
cmp dword [edi + 0x14], 0x10
jb 0x40898c
mov eax, dword [edi]
jmp 0x40898e
mov eax, edi
push str.http:__
push eax
call fcn.004c4730
add esp, 8
test eax, eax
jne 0x4089e2
cmp dword [edi + 0x14], 0x10
jb 0x4089aa
mov eax, dword [edi]
jmp 0x4089ac
mov eax, edi
push str.https:__
push eax
call fcn.004c4730
add esp, 8
test eax, eax
jne 0x4089e2
push 7
push str.http:__
lea ecx, [ebp - 0x12c]
call fcn.00406ed0
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x12c]
call fcn.00409790
jmp 0x4089f8
lea eax, [ebp - 0x12c]
cmp eax, edi
je 0x4089f8
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00406fd0
push dword [ebp - 0x164]
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push dword [ebp + 0xc]
cmovae eax, dword [ebp - 0x12c]
mov edi, dword [ebp - 0x168]
mov ecx, edi
push eax
call fcn.004082c0
mov bl, al
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x114]
push eax
push 0x200002
push dword [edi + 0x30]
call fcn.0046b900
mov ecx, dword [ebp - 0x114]
add esp, 0xc
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x168], ecx
test bl, bl
jne 0x408ae7
mov ebx, dword [edi + 0x30]
test ebx, ebx
jne 0x408a7d
mov ecx, dword [ebp - 0x160]
push 0x1a
push str.InitLibCurl_is_not_invoked
call fcn.00406ed0
jmp 0x408b6f
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004c5270
lea eax, [ebp - 0x110]
push eax
push 0x271a
push ebx
call fcn.0046f2f0
lea ecx, [ebp - 0x110]
add esp, 0x18
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408ab0
sub ecx, edx
je 0x408ad2
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x110]
push eax
call fcn.00409330
jmp 0x408b6f
mov eax, dword [ebp - 0x160]
add edi, 0x34
cmp eax, edi
je 0x408b6f
mov ecx, eax
jmp 0x408b65
mov ebx, dword [ebp - 0x160]
lea eax, [edi + 0x18]
cmp ebx, eax
je 0x408b00
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00406fd0
cmp dword [ebx + 0x10], 0
jne 0x408b59
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004c5270
lea eax, [ebp - 0x110]
push eax
push 0x271a
push dword [edi + 0x30]
call fcn.0046f2f0
lea ecx, [ebp - 0x110]
add esp, 0x18
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408b40
sub ecx, edx
je 0x408b59
lea eax, [ebp - 0x110]
mov ecx, ebx
push eax
call fcn.00409330
lea eax, [ebp - 0x144]
cmp eax, edi
je 0x408b6f
mov ecx, eax
push 0xffffffffffffffff
push 0
push edi
call fcn.00406fd0
mov eax, dword [ebp - 0x118]
cmp eax, 0x10
jb 0x408b8d
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00407160
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
cmp eax, 0x10
jb 0x408bc6
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00407160
mov edi, dword [ebp - 0x168]
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
push esi
mov dword [ebp - 4], 5
call fcn.00468e30
add esp, 4
test eax, eax
je 0x408c04
push eax
call fcn.004689e1
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004abe1b
mov esp, ebp
pop ebp
ret 0x14