Function at 0x4a516c
Capabilities:
Terminate process

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], edx
push edi
mov edi, ecx
test esi, esi
je 0x4a5191
push 0x1000
push esi
call fcn.005f8590
pop ecx
pop ecx
mov ebp, eax
jmp 0x4a5193
xor ebp, ebp
test edi, edi
je 0x4a53d4
cmp dword [edi + 0x88], 0
jne 0x4a53d4
cmp dword [edi + 0xe0], 0
jne 0x4a53d4
mov ecx, dword [edi + 0x98]
call fcn.00497636
mov ebx, eax
test ebx, ebx
je 0x4a53d4
push 0x658
push 0x7609b4
lea eax, [ebp + 0x14]
push 1
push eax
mov dword [esp + 0x2c], eax
call fcn.005f5ba0
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x4a53de
push esi
push dword [esp + 0x18]
push 0x760a78
push str.HTTP__s__d__s
push dword [esp + 0x2c]
push ebp
call fcn.0040117f
push 0
push 0
push eax
push ebp
push edi
call fcn.004a50e6
mov esi, eax
add esp, 0x2c
cmp esi, 0xfffffffc
je 0x4a53bb
cmp esi, 0xfffffffe
je 0x4a53bb
cmp dword [ebx + 0x28], 3
jne 0x4a5257
mov ecx, dword [ebx + 0x24]
mov edx, 0x760a8c
movzx eax, word [ecx]
cmp ax, word [edx]
jne 0x4a5257
movzx eax, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4a5257
mov dword [edi + 0xac], 1
jmp 0x4a526d
push 0
push 1
push 0x1c
push str._r_nTransfer_Encoding:_chunked
push edi
call fcn.004a50e6
add esp, 0x14
mov esi, eax
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4a539b
cmp esi, 0xfffffffc
je 0x4a53bb
cmp esi, 0xfffffffe
je 0x4a539b
push 0x1000
push ebx
call fcn.005f8590
pop ecx
pop ecx
cmp eax, 0x320
jge 0x4a52b5
push 0
push 1
push eax
push ebx
push edi
call fcn.004a50e6
add esp, 0x14
mov esi, eax
jmp 0x4a539b
push 2
push 0x760ab0
push eax
xor edx, edx
mov ecx, ebx
call fcn.0048ba0a
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
mov ebx, dword [ebx]
jmp 0x4a5381
cmp dword [ebx + 4], 0
je 0x4a537e
mov ecx, dword [ebx]
xor edx, edx
push 1
push 0x760ab4
push dword [ebx + 4]
call fcn.0048ba0a
mov ebp, eax
add esp, 0xc
cmp dword [ebp + 8], 1
je 0x4a5377
push 0
push 1
push 2
push 0x760ab8
push edi
call fcn.004a50e6
mov esi, eax
add esp, 0x14
cmp esi, 0xfffffffc
je 0x4a538b
cmp esi, 0xfffffffe
je 0x4a538b
mov ecx, dword [ebp]
push 0
push 2
mov eax, dword [ecx + 4]
inc eax
push eax
push dword [ecx]
push edi
call fcn.004a50e6
mov esi, eax
add esp, 0x14
cmp esi, 0xfffffffc
je 0x4a538b
cmp esi, 0xfffffffe
je 0x4a538b
mov eax, dword [ebp]
mov edx, dword [ebx + 4]
mov ecx, dword [eax + 4]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx]
sub edx, ecx
push ecx
push ecx
inc eax
dec edx
push 0x760abc
add ecx, eax
call fcn.0048c27f
push 0
push 0
push eax
push dword [esp + 0x38]
push edi
call fcn.004a50e6
add esp, 0x24
mov esi, eax
mov ecx, ebp
call fcn.0048bbce
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4a52d6
jmp 0x4a5392
mov ecx, ebp
call fcn.0048bbce
mov ecx, dword [esp + 0x14]
call fcn.0048bbce
cmp esi, 0xfffffffc
je 0x4a53bb
cmp esi, 0xfffffffe
je 0x4a53bb
push 0
push 1
push 4
push str._r_n_r_n
push edi
call fcn.004a50e6
add esp, 0x14
jmp 0x4a53d7
cmp esi, 1
je 0x4a53d0
cmp dword [edi + 0xb0], 0
je 0x4a53d0
and dword [edi + 0xb0], 0
mov eax, esi
jmp 0x4a53d7
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edi, 0x658
push esi
push edi
mov edx, 0x7609d4
xor ecx, ecx
call fcn.0048f95e
add esp, 0xc
push edi
push 0x7609f4
push 0x760924
call fcn.00401109
add esp, 0xc
push esi
call fcn.005d0820
int3