Function at 0x4052d8
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push esi
push edi
mov eax, dword [0x52da54]
mov eax, dword [eax]
mov edi, eax
mov esi, 0x4056ec
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x52da1c]
mov byte [eax], 0
mov eax, dword [0x52d654]
mov byte [eax], 0
mov eax, dword [0x52db08]
mov byte [eax], 0
mov eax, dword [0x52d660]
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [0x52d65c]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 0xdd
call sub.Vcl40.bpl__System__FillChar_qqrv
mov byte [ebp - 3], 0
mov byte [ebp - 2], 1
xor eax, eax
mov al, byte [ebp - 2]
mov edx, dword [0x52d5f4]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
lea eax, [eax + eax*2]
mov edx, dword [0x52d7ac]
mov edx, dword [edx]
cmp byte [edx + eax*2], 0
je 0x4053ef
xor eax, eax
mov al, byte [ebp - 2]
mov edx, dword [0x52d5f4]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
mov edx, dword [0x52d574]
mov edx, dword [edx]
cmp word [edx + eax*2], 0
jne 0x405397
xor eax, eax
mov al, byte [ebp - 2]
mov edx, dword [0x52d5f4]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
mov edx, dword [0x52d574]
mov edx, dword [edx]
mov word [edx + eax*2], 0x28
inc byte [ebp - 3]
cmp byte [ebp - 2], 0xc8
ja 0x4053a7
mov eax, dword [0x52d654]
inc byte [eax]
mov eax, dword [0x52da1c]
inc byte [eax]
xor eax, eax
mov al, byte [ebp - 2]
mov edx, dword [0x52d5f4]
mov edx, dword [edx]
mov al, byte [edx + eax]
xor edx, edx
mov dl, byte [ebp - 3]
mov ecx, dword [0x52d65c]
mov ecx, dword [ecx]
mov byte [ecx + edx], al
xor eax, eax
mov al, byte [ebp - 2]
mov edx, dword [0x52d5f4]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
mov edx, dword [0x52d660]
mov edx, dword [edx]
mov cl, byte [ebp - 3]
mov byte [edx + eax], cl
jmp 0x405462
xor eax, eax
mov al, byte [ebp - 2]
mov edx, dword [0x52d5f4]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
mov edx, dword [0x52d660]
mov edx, dword [edx]
mov byte [edx + eax], 0
xor eax, eax
mov al, byte [ebp - 2]
mov edx, dword [0x52d5f4]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
mov edx, dword [0x52dad8]
mov edx, dword [edx]
mov byte [edx + eax], 0
xor eax, eax
mov al, byte [ebp - 2]
mov edx, dword [0x52d5f4]
mov edx, dword [edx]
cmp byte [edx + eax], 0xc8
seta al
and eax, 0x7f
imul ax, ax, 0x270f
xor edx, edx
mov dl, byte [ebp - 2]
mov ecx, dword [0x52d5f4]
mov ecx, dword [ecx]
movzx edx, byte [ecx + edx]
mov ecx, dword [0x52d574]
mov ecx, dword [ecx]
mov word [ecx + edx*2], ax
inc byte [ebp - 2]
cmp byte [ebp - 2], 0xdd
jne 0x405332
mov eax, dword [0x52d46c]
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [0x52da1c]
movzx eax, byte [eax]
mov edx, dword [0x52d48c]
mov edx, dword [edx]
mov byte [edx + eax], 0
mov eax, dword [0x52d7ac]
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [0x52da1c]
movzx eax, byte [eax]
mov edx, dword [0x52d65c]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
lea eax, [eax + eax*2]
mov edx, dword [0x52d7ac]
mov edx, dword [edx]
lea edx, [edx + eax*2]
lea eax, [ebp - 0x10]
call sub.Vcl40.bpl__Sysutils_StrCopy_qqrpct1
mov eax, dword [0x52dad8]
mov eax, dword [eax]
mov byte [eax], 1
mov eax, dword [0x52da70]
mov eax, dword [eax]
call fcn.00412a6c
mov eax, dword [0x52da1c]
mov al, byte [eax]
cmp al, 1
jb 0x405587
mov byte [ebp - 1], al
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xa]
call sub.Vcl40.bpl__Sysutils_StrCopy_qqrpct1
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x52d65c]
mov edx, dword [edx]
movzx eax, byte [edx + eax - 1]
lea eax, [eax + eax*2]
mov edx, dword [0x52d7ac]
mov edx, dword [edx]
lea edx, [edx + eax*2]
lea eax, [ebp - 0x10]
call sub.Vcl40.bpl__Sysutils_StrCopy_qqrpct1
cmp byte [ebp - 0xa], 0
je 0x40557a
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x52d65c]
mov edx, dword [edx]
mov al, byte [edx + eax]
mov edx, dword [0x52da54]
mov edx, dword [edx]
and eax, 0xff
bts dword [edx], eax
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xa]
call sub.Vcl40.bpl__Sysutils_StrIComp_qqrpct1
test eax, eax
sete byte [ebp - 0x11]
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x52d46c]
mov edx, dword [edx]
mov cl, byte [ebp - 0x11]
mov byte [edx + eax], cl
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x52d48c]
mov edx, dword [edx]
mov cl, byte [ebp - 0x11]
mov byte [edx + eax - 1], cl
dec byte [ebp - 1]
cmp byte [ebp - 1], 0
jne 0x4054e9
mov byte [ebp - 1], 0
mov eax, dword [0x52d654]
mov al, byte [eax]
cmp al, byte [ebp - 1]
jbe 0x405609
inc byte [ebp - 1]
mov byte [ebp - 0x12], 1
jmp 0x4055cb
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x52d65c]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
mov edx, dword [0x52dad8]
mov edx, dword [edx]
mov byte [edx + eax], 1
inc byte [ebp - 0x12]
inc byte [ebp - 1]
mov eax, dword [0x52db08]
mov byte [eax], 1
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x52d48c]
mov edx, dword [edx]
cmp byte [edx + eax], 0
jne 0x4055a0
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x52d65c]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
mov edx, dword [0x52dad8]
mov edx, dword [edx]
mov cl, byte [ebp - 0x12]
mov byte [edx + eax], cl
mov eax, dword [0x52d654]
mov al, byte [eax]
cmp al, byte [ebp - 1]
ja 0x405597
mov eax, dword [0x52da1c]
mov al, byte [eax]
test al, al
jbe 0x405687
mov byte [ebp - 0x13], al
mov byte [ebp - 1], 1
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x52d48c]
mov edx, dword [edx]
cmp byte [edx + eax], 0
jne 0x40567f
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x52d65c]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
push eax
push 0
push 0
push 0
xor eax, eax
mov al, byte [ebp - 1]
mov edx, dword [0x52d65c]
mov edx, dword [edx]
movzx eax, byte [edx + eax]
lea eax, [eax + eax*2]
mov edx, dword [0x52d7ac]
mov edx, dword [edx]
lea ecx, [edx + eax*2]
mov dl, 1
mov eax, dword [0x412550]
call fcn.004129a8
mov edx, eax
mov eax, dword [0x52da70]
mov eax, dword [eax]
call fcn.004128b4
inc byte [ebp - 1]
dec byte [ebp - 0x13]
jne 0x40561b
mov byte [ebp - 4], 0
mov eax, dword [0x52da54]
mov eax, dword [eax]
mov esi, eax
lea edi, [ebp - 0x34]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x34]
xor edx, edx
mov dl, byte [ebp - 4]
imul edx, edx, 0x13
mov ecx, dword [0x52d948]
mov ecx, dword [ecx]
lea edx, [ecx + edx*2 + 6]
mov cl, 0x20
call sub.Vcl40.bpl__System__SetIntersect_qqrv
xor eax, eax
mov al, byte [ebp - 4]
imul eax, eax, 0x13
mov edx, dword [0x52d948]
mov edx, dword [edx]
lea esi, [ebp - 0x34]
lea edi, [edx + eax*2 + 6]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
inc byte [ebp - 4]
cmp byte [ebp - 4], 0x19
jne 0x40568b
pop edi
pop esi
mov esp, ebp
pop ebp
ret