Function at 0x40591d
Capabilities:
Check http status code

Disassembly:
push 0x214
mov eax, 0x5079e9
call fcn.004d9a65
mov esi, ecx
mov edi, esi
call fcn.00406054
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 0x405979
push 0x1e
pop eax
cmp eax, ebx
jne 0x40599f
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.004d9ac1
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.00408194
mov edx, eax
call fcn.0040835c
sub esp, 0xc
mov eax, esp
lea edx, [ebp - 0x168]
mov dword [ebp - 0x130], esp
call fcn.00405f90
sub esp, 0xc
mov eax, esp
mov ecx, edi
mov dword [ebp - 0x130], esp
call fcn.00408194
lea eax, [ebp - 0x140]
call fcn.0040b615
sub esp, 0xc
lea edx, [ebp - 0x168]
mov eax, esp
mov dword [ebp - 0x130], esp
call fcn.00405f90
lea eax, [ebp - 0x150]
mov ecx, edi
call fcn.00408194
sub esp, 0xc
mov edx, eax
mov eax, esp
mov dword [ebp - 0x130], esp
call fcn.00405f90
lea eax, [ebp - 0x178]
push eax
push edi
call fcn.00408238
mov byte [ebp - 4], 1
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x220]
push eax
call fcn.004083a1
lea eax, [ebp - 0x210]
push 0x5b
push eax
mov byte [ebp - 4], 3
call fcn.0040b042
mov eax, dword [ebp - 0x140]
pop ecx
pop ecx
mov edi, eax
cmp eax, dword [ebp - 0x13c]
je 0x405aaf
jmp 0x405a81
mov eax, dword [ebp - 0x140]
cmp edi, eax
je 0x405a95
lea eax, [ebp - 0x210]
push 0x2c
push eax
call fcn.0040b042
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
mov ecx, edi
call fcn.0040b361
add edi, 0x1c
pop ecx
cmp edi, dword [ebp - 0x13c]
jne 0x405a7b
lea eax, [ebp - 0x210]
push 0x5d
push eax
call fcn.0040b042
pop ecx
pop ecx
cmp byte [esi + 0x1c], bl
je 0x405b1c
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x220]
call fcn.00408457
push eax
lea eax, [ebp - 0xa0]
push str.flush_record_:
push eax
mov byte [ebp - 4], 4
call fcn.0040b592
add esp, 0xc
push 0x54f080
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040b361
pop ecx
push eax
call fcn.0040e262
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.0040248a
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040248a
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 0x405bf3
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.004023d3
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.00402169
lea ecx, [ebp - 0x154]
call fcn.0040cddc
mov edi, dword [ebp - 0x150]
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
mov byte [ebp - 4], 8
cmp edi, ebx
je 0x405baf
lea eax, [ebp - 0x68]
push eax
mov ecx, edi
call fcn.00401fda
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 9
call fcn.00401fda
add edi, 0x38
mov byte [ebp - 4], 7
lea eax, [edi - 0x38]
mov dword [ebp - 0x150], edi
cmp dword [ebp - 0x154], eax
je 0x405bd9
cmp eax, edi
je 0x405bd9
push edi
push dword [ebp - 0x154]
call fcn.0040d0e2
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.0040248a
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.0040248a
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x220]
call fcn.00408457
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.00405508
test al, al
jne 0x405c5d
push ebx
push 1
mov ecx, edi
call fcn.0040248a
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.0040248a
mov byte [ebp - 0x125], bl
jmp 0x405e10
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00405634
lea eax, [ebp - 0xbc]
push eax
lea edi, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
call fcn.00403f2f
add esp, 0xc
push eax
lea eax, [ebp - 0x108]
push str.data_list
push eax
mov byte [ebp - 4], 0xe
call fcn.0040b592
add esp, 0xc
lea ecx, [ebp - 0xec]
push str.gzip1
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.00401e66
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.0040204c
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0xec]
call fcn.0040248a
push ebx
push edi
lea ecx, [ebp - 0x108]
call fcn.0040248a
push ebx
push edi
lea ecx, [ebp - 0xbc]
call fcn.0040248a
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.0040248a
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.0040248a
lea eax, [ebp - 0x60]
push eax
call fcn.00405485
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x12c]
mov edi, dword [eax]
jmp 0x405da8
push ebx
push 0x52c92e
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.004023d3
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.00405209
add esp, 0x14
lea ebx, [ebp - 0x60]
mov byte [ebp - 4], 0x13
call fcn.004054bf
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 0x12
call fcn.00404f19
push 0
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call fcn.0040248a
xor ebx, ebx
cmp dword [ebp - 0x60], 0xc8
je 0x405dee
mov eax, dword [ebp - 0x12c]
add edi, 0x1c
cmp edi, dword [eax + 4]
jne 0x405d27
cmp dword [ebp - 0x60], 0xc8
je 0x405dee
push str.SensorsAnalytics_SDK_send_failed:
push 0x54efc8
call fcn.0040b1b8
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040b361
add esp, 0xc
push eax
call fcn.0040e262
pop ecx
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0xb
call fcn.00404f19
jmp 0x405c44
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0xb
call fcn.00404f19
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.0040248a
mov byte [ebp - 0x125], 1
push ebx
push 1
lea ecx, [ebp - 0x124]
call fcn.0040248a
cmp byte [ebp - 0x125], bl
jne 0x405ed1
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 0x405ebe
mov eax, dword [ebp - 0x13c]
sub eax, dword [ebp - 0x140]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, esi
jbe 0x405e65
sub eax, esi
jmp 0x405e67
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.00408194
mov edx, eax
lea eax, [ebp - 0x168]
call fcn.00405f90
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.00405f90
push dword [ebp - 0x144]
call fcn.0040c53e
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 6
lea edi, [ebp - 0x154]
call fcn.00409268
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 1
call fcn.0040841f
lea eax, [ebp - 0x1c0]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004d45ba
pop ecx
cmp dword [ebp - 0x140], ebx
je 0x405f27
push dword [ebp - 0x13c]
mov eax, dword [ebp - 0x140]
call fcn.0040906b
push dword [ebp - 0x140]
call fcn.004d57d0
pop ecx
mov bl, byte [ebp - 0x125]
jmp 0x40598b