Function at 0x421880
Capabilities:
Check http status code
Delete file
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576aff
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x5ef2a0]
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 - 0x10], esp
mov esi, ecx
mov edi, dword [ebp + 0xc]
xor bl, bl
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x180], esi
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x16c], edi
mov byte [ebp - 0x149], bl
mov byte [ebp - 0x14a], bl
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x160]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x160], 0x50
push eax
lea edx, [ebp - 0xf0]
call fcn.00423cb0
mov edi, dword [ebp - 0x160]
mov eax, 0x1bb
add esp, 8
cmp di, ax
jne 0x421999
cmp dword [ebp - 0x30], 8
jb 0x421967
push dword [ebp - 0x44]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0xdc], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x421992
push dword [ebp - 0xf0]
call fcn.0053ce38
add esp, 4
xor al, al
jmp 0x422453
lea edx, [ebp - 0xf0]
lea ecx, [ebp - 0xd8]
call fcn.00423660
push edi
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00421640
test al, al
jne 0x4219dc
push 0x5e3780
lea eax, [ebp - 0x178]
mov dword [ebp - 0x178], 0x5d3574
push eax
call fcn.0053d5d3
cmp dword [ebp - 0xc8], 0
je 0x421a40
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00429630
add esp, 4
push eax
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 4
call fcn.00429960
push eax
add eax, 0x10
lea ecx, [esi + 0x74]
push eax
push 0
lea eax, [ebp - 0x15c]
push eax
call fcn.004296a0
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], 0x10
jb 0x421a40
push dword [ebp - 0xbc]
call fcn.0053ce38
add esp, 4
jmp 0x421a40
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xbc]
call fcn.00423660
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 5
cmp ecx, eax
je 0x421a63
push 0xffffffffffffffff
push 0
push eax
call fcn.00420f90
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], 0x10
jb 0x421a7e
push dword [ebp - 0xbc]
call fcn.0053ce38
add esp, 4
push ecx
lea eax, [ebp - 0x74]
push eax
lea ecx, [esi + 0x24]
call fcn.00427eb0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
push 0
push dword [ebp - 0x64]
cmovae eax, dword [ebp - 0x74]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x421ac9
push 0x5e37b4
lea eax, [ebp - 0x174]
mov dword [ebp - 0x174], 3
push eax
call fcn.0053d5d3
mov ebx, dword [ebp - 0x168]
xorps xmm0, xmm0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ebx
movsd qword [ebp - 0x15c], xmm0
movsd qword [ebp - 0x164], xmm0
mov byte [ebp - 0x14b], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x421b15
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5d3548
lea eax, [ebp - 0x154]
push ebx
push eax
call fcn.0053ebd2
add esp, 0xc
cmp dword [ebp - 0x154], 0
jne 0x421b4e
push 0x5e37b4
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x17c], 7
push eax
call fcn.0053d5d3
push 0x1001
call fcn.0053f188
mov edi, eax
mov dword [ebp - 0x150], edi
add esp, 4
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x421b93
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x421b93
push 0x5e37b4
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], 0xb
push eax
call fcn.0053d5d3
push 0
push 0x1000
push edi
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x421bc6
push 0x5e37b4
lea eax, [ebp - 0x184]
mov dword [ebp - 0x184], 0xa
push eax
call fcn.0053d5d3
test ebx, ebx
jle 0x422221
cmp byte [ebp - 0x14b], 0
mov byte [ebx + edi], 0
jne 0x422336
cmp byte [edi], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jne 0x421bfa
xor ecx, ecx
jmp 0x421c09
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421c00
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.00421120
push 4
push 0
push str._r_n_r_n
lea ecx, [ebp - 0x5c]
call fcn.004232c0
mov edi, eax
cmp edi, 0xffffffff
jne 0x421c4c
mov edi, dword [ebp - 0x150]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x48], 0x10
jb 0x421b63
push dword [ebp - 0x5c]
call fcn.0053ce38
jmp 0x421b60
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push edi
push dword [ebp - 0x150]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00423460
mov dword [ebp - method.CHttpHeader.virtual_0], vtable.CHttpHeader.0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x12c], 0xf
mov dword [ebp - 0x130], 0
mov byte [ebp - 0x140], 0
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], 0
mov byte [ebp - 0x128], 0
mov dword [ebp - 0xfc], 0xf
mov dword [ebp - 0x100], 0
mov byte [ebp - 0x110], 0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
call fcn.00429570
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x148]
call fcn.00428790
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x144]
mov dword [esi + 4], eax
cmp eax, 0x190
jne 0x421d41
push 0x5e37b4
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 5
push eax
call fcn.0053d5d3
cmp eax, 0x12c
jle 0x422074
cmp eax, 0x190
jge 0x422074
push 8
push str.Location
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
call fcn.00421120
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x148]
call fcn.00427ce0
mov edx, eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xa4]
call fcn.004242e0
cmp dword [ebp - 0xa8], 0x10
jb 0x421dc3
push dword [ebp - 0xbc]
call fcn.0053ce38
add esp, 4
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x78], 0x10
jb 0x421df6
push dword [ebp - 0x8c]
call fcn.0053ce38
add esp, 4
push 7
push 0
push 0x5d3578
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
call fcn.00423920
test eax, eax
je 0x421eeb
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x44]
call fcn.00423b50
cmp dword [ebp - 0x90], 8
jb 0x421e51
push dword [ebp - 0xa4]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x90], 7
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
call fcn.00427c40
cmp dword [ebp - 0x18], 0x10
jb 0x421e8a
push dword [ebp - 0x2c]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x421ead
push dword [ebp - 0x5c]
call fcn.0053ce38
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x421ed4
push dword [ebp - 0x74]
call fcn.0053ce38
add esp, 4
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jmp 0x421a40
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x421f01
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 8], 0xffffffff
push dword [ebp - 0x150]
call fcn.0053f150
push dword [ebp - 0x154]
mov dword [ebp - 0x150], 0
call fcn.0053ed52
mov eax, dword [esi]
lea edx, [ebp - 0xa4]
mov edi, dword [ebp - 0x168]
add esp, 8
cmp dword [ebp - 0x90], 8
mov ecx, esi
mov dword [ebp - 0x154], 0
cmovae edx, dword [ebp - 0xa4]
mov eax, dword [eax + 4]
push edi
push edx
call eax
cmp dword [ebp - 0x90], 8
mov bl, al
jb 0x421f6c
push dword [ebp - 0xa4]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x90], 7
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x94], 0
mov word [ebp - 0xa4], ax
call fcn.00427c40
cmp dword [ebp - 0x18], 0x10
jb 0x421fa5
push dword [ebp - 0x2c]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x421fc8
push dword [ebp - 0x5c]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x421feb
push dword [ebp - 0x74]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0xc4], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x422014
push dword [ebp - 0xd8]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0xc4], 0xf
mov dword [ebp - 0xc8], 0
mov byte [ebp - 0xd8], 0
jb 0x422040
push dword [ebp - 0x44]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0xdc], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x422451
push dword [ebp - 0xf0]
call fcn.0053ce38
add esp, 4
jmp 0x422451
push 0xe
push str.Content_Length
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
call fcn.00421120
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x148]
call fcn.00427ce0
cmp dword [eax + 0x14], 0x10
jb 0x4220c0
mov eax, dword [eax]
push eax
call fcn.005454ed
add esp, 4
cmp dword [ebp - 0xa8], 0x10
fstp qword [ebp - 0x15c]
jb 0x4220e6
push dword [ebp - 0xbc]
call fcn.0053ce38
add esp, 4
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x78], 0x10
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
jb 0x422119
push dword [ebp - 0x8c]
call fcn.0053ce38
add esp, 4
mov eax, ebx
sub eax, edi
sub eax, 4
test eax, eax
jle 0x422194
push dword [ebp - 0x154]
push 1
push eax
mov eax, dword [ebp - 0x150]
add eax, 4
add eax, edi
push eax
call fcn.0053fef6
mov ecx, dword [esi + 0x80]
add esp, 0x10
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [ebp - 0x164]
movsd qword [ebp - 0x164], xmm0
test ecx, ecx
je 0x422194
mov eax, dword [ecx]
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [ebp - 0x15c]
movsd qword [esp], xmm0
push 0
push dword [esi + 0x7c]
movsd qword [ebp - 0x15c], xmm0
call dword [eax]
movsd xmm0, qword [ebp - 0x15c]
jmp 0x4221a4
movsd xmm0, qword [ebp - 0x15c]
movsd qword [ebp - 0x15c], xmm0
movsd xmm1, qword [ebp - 0x164]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x4222e0
mov ecx, dword [esi + 0x80]
test ecx, ecx
je 0x4221db
mov eax, dword [ecx]
sub esp, 0x10
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push 2
push dword [esi + 0x7c]
call dword [eax]
lea ecx, [ebp - 0x148]
mov byte [ebp - 0x149], 1
call fcn.00427c40
cmp dword [ebp - 0x18], 0x10
jb 0x4221fe
push dword [ebp - 0x2c]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x422221
push dword [ebp - 0x5c]
call fcn.0053ce38
add esp, 4
mov bl, byte [ebp - 0x149]
cmp dword [ebp - 0x60], 0x10
jb 0x422238
push dword [ebp - 0x74]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0xc4], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x422261
push dword [ebp - 0xd8]
call fcn.0053ce38
add esp, 4
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0xc4], 0xf
mov dword [ebp - 0xc8], 0
mov byte [ebp - 0xd8], 0
jb 0x42228d
push dword [ebp - 0x44]
call fcn.0053ce38
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0xdc], 8
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jb 0x4222b8
push dword [ebp - 0xf0]
call fcn.0053ce38
add esp, 4
mov edi, dword [ebp - 0x168]
xor eax, eax
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
jmp 0x422416
lea ecx, [ebp - 0x148]
mov byte [ebp - 0x14b], 1
call fcn.00427c40
cmp dword [ebp - 0x18], 0x10
jb 0x422303
push dword [ebp - 0x2c]
call fcn.0053ce38
add esp, 4
mov edi, dword [ebp - 0x150]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x421b63
push dword [ebp - 0x5c]
call fcn.0053ce38
jmp 0x421b60
push dword [ebp - 0x154]
push 1
push ebx
push edi
call fcn.0053fef6
mov ecx, dword [esi + 0x80]
add esp, 0x10
movd xmm0, ebx
cvtdq2pd xmm1, xmm0
addsd xmm1, qword [ebp - 0x164]
movsd qword [ebp - 0x164], xmm1
test ecx, ecx
je 0x422391
movsd xmm0, qword [ebp - 0x15c]
sub esp, 0x10
mov eax, dword [ecx]
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push 0
push dword [esi + 0x7c]
call dword [eax]
movsd xmm1, qword [ebp - 0x164]
movsd xmm0, qword [ebp - 0x15c]
comisd xmm1, xmm0
jb 0x421b63
mov ecx, dword [esi + 0x80]
mov bl, 1
mov byte [ebp - 0x14a], bl
test ecx, ecx
je 0x422227
mov eax, dword [ecx]
sub esp, 0x10
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
push 2
push dword [esi + 0x7c]
call dword [eax]
jmp 0x422227
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x422429
push eax
call fcn.0053f150
add esp, 4
mov eax, dword [ebp - 0x154]
test eax, eax
je 0x422446
push eax
call fcn.0053ed52
add esp, 4
mov dword [ebp - 0x154], 0
test bl, bl
jne 0x422451
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
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.0053d5c4
mov esp, ebp
pop ebp
ret 8