Function at 0x487680
Capabilities:
Check http status code

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], 1
cmp eax, ebx
jne 0x4876a2
call fcn.0048a8d0
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
push esi
push edi
mov edi, dword [esp + 0x28]
test byte [esp + 0x2c], 1
je 0x4876bb
call fcn.00409c20
call fcn.00460350
push 0x4d5118
xor esi, esi
call ebp
mov al, byte [0x4d5112]
cmp al, bl
je 0x487725
mov dl, al
mov cl, byte [0x4d5110]
dec dl
mov esi, 1
mov byte [0x4d5112], dl
mov eax, dword [0x4d5110]
and eax, 0xff
shl eax, 4
add eax, 0x4d5010
inc cl
mov byte [0x4d5110], cl
mov ecx, edi
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov al, byte [0x4d5110]
and al, 0xf
mov byte [0x4d5110], al
push 0x4d5118
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
cmp esi, ebx
jne 0x487846
push 0x4d5118
xor esi, esi
call ebp
mov al, byte [0x4d5242]
cmp al, bl
je 0x48779d
mov dl, al
mov cl, byte [0x4d5240]
dec dl
mov esi, 1
mov byte [0x4d5242], dl
mov eax, dword [0x4d5240]
and eax, 0xff
shl eax, 4
add eax, 0x4d5140
inc cl
mov byte [0x4d5240], cl
mov ecx, edi
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov al, byte [0x4d5240]
and al, 0xf
mov byte [0x4d5240], al
push 0x4d5118
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
cmp esi, ebx
jne 0x487810
cmp word [0x4aa356], bx
je 0x4877c3
mov word [edi], 3
mov word [0x4aa356], bx
jmp 0x487810
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [0x4d5254]
mov esi, eax
sub eax, ecx
js 0x4877fa
add ecx, 0x64
mov eax, esi
sub eax, ecx
mov dword [0x4d5254], ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xc8
jle 0x4877f3
mov dword [0x4d5254], esi
mov word [edi], 0xa
jmp 0x487810
cdq
xor eax, edx
sub eax, edx
cmp eax, 0xc8
jle 0x487998
mov dword [0x4d5254], esi
cmp word [0x4aa354], bx
je 0x487831
mov cx, word [0x4d5134]
mov word [edi + 4], cx
mov dx, word [0x4d5136]
mov word [edi + 6], dx
jmp 0x487846
mov ax, word [0x4d5248]
mov word [edi + 4], ax
mov cx, word [0x4d524a]
mov word [edi + 6], cx
xor eax, eax
mov ax, word [edi]
cmp eax, 9
ja case.0x487854.3
jmp dword [eax*4 + 0x487a7c]
cmp word [0x4d5138], bx
je 0x4879a6
jmp 0x4876af
cmp word [0x4d5138], bx
je 0x4879b7
jmp 0x4876af
cmp word [0x4d5138], bx
je 0x4879c8
jmp 0x4876af
cmp word [0x4d5138], bx
je 0x4879e4
jmp 0x4876af
test byte [0x4d5138], 8
jne 0x487a00
jmp 0x4876af
test byte [0x4d5138], 2
jne 0x487a0b
jmp 0x4876af
cmp word [0x4d5138], bx
jne 0x4876af
cmp byte [edi + 0xc], 0x2c
jne case.0x487854.3
call fcn.0048a1d0
jmp 0x4876af
cmp word [0x4d5138], bx
je case.0x487854.3
jmp 0x4876af
cmp word [0x4d5138], bx
jne 0x4876af
mov al, byte [edi + 0xc]
cmp al, 0x91
jne 0x48794d
call fcn.0048a480
push 0x100
push ebx
push 0x4d54a8
call fcn.0048a720
lea edx, [esp + 0x20]
mov dword [esp + 0x24], ebx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0x27f
mov dword [esp + 0x30], 0x1df
call fcn.004886a0
add esp, 0x10
jmp 0x4876af
cmp al, 0x13
jne case.0x487854.3
push 0x12
call fcn.0048a850
add esp, 4
test ax, ax
je case.0x487854.3
push 0x11
call fcn.0048a850
add esp, 4
test ax, ax
je case.0x487854.3
push 0x11
call fcn.0048a8a0
push 0x12
call fcn.0048a8a0
push 0x13
call fcn.0048a8a0
add esp, 0xc
jmp 0x4876af
pop edi
pop esi
mov dword [esp + 8], ebx
mov eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret
mov word [0x4d5138], 8
mov dword [0x4d524c], ebx
jmp case.0x487854.3
mov word [0x4d5138], 2
mov dword [0x4d524c], ebx
jmp case.0x487854.3
cmp dword [0x4d524c], ebx
je 0x4879d5
mov word [edi], 7
or byte [0x4d5138], 8
mov dword [0x4d524c], ebx
jmp case.0x487854.3
cmp dword [0x4d524c], ebx
je 0x4879f1
mov word [edi], 4
or byte [0x4d5138], 2
mov dword [0x4d524c], ebx
jmp case.0x487854.3
and word [0x4d5138], 0xfff7
jmp case.0x487854.3
and word [0x4d5138], 0xfffd
lea esi, [edi + 6]
add edi, 4
push esi
push edi
call fcn.0048a970
mov di, word [edi]
mov si, word [esi]
movsx eax, word [0x4d6570]
movsx ecx, word [0x4d48aa]
movsx edx, di
add eax, ecx
add esp, 8
cmp edx, eax
jne 0x487a58
movsx eax, word [0x4d6572]
movsx ecx, word [0x4d48ac]
movsx edx, si
add eax, ecx
cmp edx, eax
je 0x487a70
push esi
push edi
call fcn.004896a0
add esp, 8
mov word [0x4d5248], di
mov word [0x4d524a], si
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret