Function at 0x406201
Capabilities:
Check http status code

Disassembly:
push 0x214
mov eax, 0x5080df
call fcn.004da087
mov esi, ecx
mov edi, esi
call fcn.0040691b
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x38]
push eax
mov dword [ebp - 0x158], eax
call edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0x12c], eax
call edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x60]
cmp eax, 0x1e
jbe 0x40625d
push 0x1e
pop eax
cmp eax, ebx
jne 0x406283
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov bl, 1
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
call fcn.004da0e3
ret
push eax
lea eax, [ebp - 0x168]
lea edi, [esi + 0x50]
push eax
lea eax, [ebp - 0x150]
mov ecx, edi
mov dword [ebp - 0x144], edi
call fcn.00408a5b
mov edx, eax
call fcn.00408c23
sub esp, 0xc
mov eax, esp
lea edx, [ebp - 0x168]
mov dword [ebp - 0x130], esp
call fcn.00406874
sub esp, 0xc
mov eax, esp
mov ecx, edi
mov dword [ebp - 0x130], esp
call fcn.00408a5b
lea eax, [ebp - 0x140]
call fcn.0040bf67
sub esp, 0xc
lea edx, [ebp - 0x168]
mov eax, esp
mov dword [ebp - 0x130], esp
call fcn.00406874
lea eax, [ebp - 0x150]
mov ecx, edi
call fcn.00408a5b
sub esp, 0xc
mov edx, eax
mov eax, esp
mov dword [ebp - 0x130], esp
call fcn.00406874
lea eax, [ebp - 0x178]
push eax
push edi
call fcn.00408aff
mov byte [ebp - 4], 1
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x220]
push eax
call fcn.00408c68
lea eax, [ebp - 0x210]
push 0x5b
push eax
mov byte [ebp - 4], 3
call fcn.0040b994
mov eax, dword [ebp - 0x140]
pop ecx
pop ecx
mov edi, eax
cmp eax, dword [ebp - 0x13c]
je 0x406393
jmp 0x406365
mov eax, dword [ebp - 0x140]
cmp edi, eax
je 0x406379
lea eax, [ebp - 0x210]
push 0x2c
push eax
call fcn.0040b994
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
mov ecx, edi
call fcn.0040bcb3
add edi, 0x1c
pop ecx
cmp edi, dword [ebp - 0x13c]
jne 0x40635f
lea eax, [ebp - 0x210]
push 0x5d
push eax
call fcn.0040b994
pop ecx
pop ecx
cmp byte [esi + 0x1c], bl
je 0x406400
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x220]
call fcn.00408d1e
push eax
lea eax, [ebp - 0xa0]
push str.flush_record_:
push eax
mov byte [ebp - 4], 4
call fcn.0040bee4
add esp, 0xc
push 0x54f2e0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040bcb3
pop ecx
push eax
call fcn.0040ebd2
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.00402476
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00402476
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
mov byte [ebp - 4], 6
cmp dword [esi + 0x10], ebx
jbe 0x4064d7
push 0xf
pop eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
push 6
push str.Cookie
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.004023bf
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00402155
lea ecx, [ebp - 0x154]
call fcn.0040d72e
mov edi, dword [ebp - 0x150]
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
mov byte [ebp - 4], 8
cmp edi, ebx
je 0x406493
lea eax, [ebp - 0x68]
push eax
mov ecx, edi
call fcn.00401fc6
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 9
call fcn.00401fc6
add edi, 0x38
mov byte [ebp - 4], 7
lea eax, [edi - 0x38]
mov dword [ebp - 0x150], edi
cmp dword [ebp - 0x154], eax
je 0x4064bd
cmp eax, edi
je 0x4064bd
push edi
push dword [ebp - 0x154]
call fcn.0040da34
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.00402476
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00402476
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x220]
call fcn.00408d1e
mov ecx, dword [esi + 0x8c]
push 0xf
pop edx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea edi, [ebp - 0x30]
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.00405de9
test al, al
jne 0x406541
push ebx
push 1
mov ecx, edi
call fcn.00402476
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00402476
mov byte [ebp - 0x125], bl
jmp 0x4066f4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00405f15
lea eax, [ebp - 0xbc]
push eax
lea edi, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
call fcn.00404810
add esp, 0xc
push eax
lea eax, [ebp - 0x108]
push str.data_list
push eax
mov byte [ebp - 4], 0xe
call fcn.0040bee4
add esp, 0xc
lea ecx, [ebp - 0xec]
push str.gzip1
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.00401e52
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.00402038
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0xec]
call fcn.00402476
push ebx
push edi
lea ecx, [ebp - 0x108]
call fcn.00402476
push ebx
push edi
lea ecx, [ebp - 0xbc]
call fcn.00402476
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.00402476
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.00402476
lea eax, [ebp - 0x60]
push eax
call fcn.00405d66
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x12c]
mov edi, dword [eax]
jmp 0x40668c
push ebx
push 0x52c91e
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.004023bf
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xd0]
push edi
push eax
mov byte [ebp - 4], 0x12
call fcn.00405aea
add esp, 0x14
lea ebx, [ebp - 0x60]
mov byte [ebp - 4], 0x13
call fcn.00405da0
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 0x12
call fcn.004057fa
push 0
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call fcn.00402476
xor ebx, ebx
cmp dword [ebp - 0x60], 0xc8
je 0x4066d2
mov eax, dword [ebp - 0x12c]
add edi, 0x1c
cmp edi, dword [eax + 4]
jne 0x40660b
cmp dword [ebp - 0x60], 0xc8
je 0x4066d2
push str.SensorsAnalytics_SDK_send_failed:
push 0x54f228
call fcn.0040bb0a
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040bcb3
add esp, 0xc
push eax
call fcn.0040ebd2
pop ecx
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0xb
call fcn.004057fa
jmp 0x406528
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0xb
call fcn.004057fa
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00402476
mov byte [ebp - 0x125], 1
push ebx
push 1
lea ecx, [ebp - 0x124]
call fcn.00402476
cmp byte [ebp - 0x125], bl
jne 0x4067b5
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0x12c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 0x15
mov eax, dword [esi + 0x60]
mov esi, dword [esi + 0x84]
sub esi, eax
je 0x4067a2
mov eax, dword [ebp - 0x13c]
sub eax, dword [ebp - 0x140]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, esi
jbe 0x406749
sub eax, esi
jmp 0x40674b
xor eax, eax
mov ecx, dword [ebp - 0x144]
imul eax, eax, 0x1c
add eax, dword [ebp - 0x140]
mov esi, eax
lea eax, [ebp - 0x178]
call fcn.00408a5b
mov edx, eax
lea eax, [ebp - 0x168]
call fcn.00406874
push dword [ebp - 0x130]
lea edx, [ebp - 0x168]
push dword [ebp - 0x13c]
push esi
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x130], esp
call fcn.00406874
push dword [ebp - 0x144]
call fcn.0040ce15
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 6
lea edi, [ebp - 0x154]
call fcn.00409b9f
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 1
call fcn.00408ce6
lea eax, [ebp - 0x1c0]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004d4bef
pop ecx
cmp dword [ebp - 0x140], ebx
je 0x40680b
push dword [ebp - 0x13c]
mov eax, dword [ebp - 0x140]
call fcn.0040994f
push dword [ebp - 0x140]
call fcn.004d5e00
pop ecx
mov bl, byte [ebp - 0x125]
jmp 0x40626f