Function at 0x4058e8
Capabilities:
Check http status code

Disassembly:
push 0x214
mov eax, 0x50792d
call fcn.004d99c5
mov esi, ecx
mov edi, esi
call fcn.00406002
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 0x405944
push 0x1e
pop eax
cmp eax, ebx
jne 0x40596a
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.004d9a21
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.00408142
mov edx, eax
call fcn.0040830a
sub esp, 0xc
mov eax, esp
lea edx, [ebp - 0x168]
mov dword [ebp - 0x130], esp
call fcn.00405f5b
sub esp, 0xc
mov eax, esp
mov ecx, edi
mov dword [ebp - 0x130], esp
call fcn.00408142
lea eax, [ebp - 0x140]
call fcn.0040b629
sub esp, 0xc
lea edx, [ebp - 0x168]
mov eax, esp
mov dword [ebp - 0x130], esp
call fcn.00405f5b
lea eax, [ebp - 0x150]
mov ecx, edi
call fcn.00408142
sub esp, 0xc
mov edx, eax
mov eax, esp
mov dword [ebp - 0x130], esp
call fcn.00405f5b
lea eax, [ebp - 0x178]
push eax
push edi
call fcn.004081e6
mov byte [ebp - 4], 1
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x220]
push eax
call fcn.0040834f
lea eax, [ebp - 0x210]
push 0x5b
push eax
mov byte [ebp - 4], 3
call fcn.0040b056
mov eax, dword [ebp - 0x140]
pop ecx
pop ecx
mov edi, eax
cmp eax, dword [ebp - 0x13c]
je 0x405a7a
jmp 0x405a4c
mov eax, dword [ebp - 0x140]
cmp edi, eax
je 0x405a60
lea eax, [ebp - 0x210]
push 0x2c
push eax
call fcn.0040b056
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
mov ecx, edi
call fcn.0040b375
add edi, 0x1c
pop ecx
cmp edi, dword [ebp - 0x13c]
jne 0x405a46
lea eax, [ebp - 0x210]
push 0x5d
push eax
call fcn.0040b056
pop ecx
pop ecx
cmp byte [esi + 0x1c], bl
je 0x405ae7
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x220]
call fcn.00408405
push eax
lea eax, [ebp - 0xa0]
push str.flush_record_:
push eax
mov byte [ebp - 4], 4
call fcn.0040b5a6
add esp, 0xc
push 0x54f080
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040b375
pop ecx
push eax
call fcn.0040e271
pop ecx
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.0040241d
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040241d
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 0x405bbe
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.00402366
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x4c]
call fcn.004020fc
lea ecx, [ebp - 0x154]
call fcn.0040cdf0
mov edi, dword [ebp - 0x150]
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
mov byte [ebp - 4], 8
cmp edi, ebx
je 0x405b7a
lea eax, [ebp - 0x68]
push eax
mov ecx, edi
call fcn.00401f6d
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 9
call fcn.00401f6d
add edi, 0x38
mov byte [ebp - 4], 7
lea eax, [edi - 0x38]
mov dword [ebp - 0x150], edi
cmp dword [ebp - 0x154], eax
je 0x405ba4
cmp eax, edi
je 0x405ba4
push edi
push dword [ebp - 0x154]
call fcn.0040d0f6
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.0040241d
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.0040241d
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x220]
call fcn.00408405
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.004054d3
test al, al
jne 0x405c28
push ebx
push 1
mov ecx, edi
call fcn.0040241d
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.0040241d
mov byte [ebp - 0x125], bl
jmp 0x405ddb
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004055ff
lea eax, [ebp - 0xbc]
push eax
lea edi, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
call fcn.00403efa
add esp, 0xc
push eax
lea eax, [ebp - 0x108]
push str.data_list
push eax
mov byte [ebp - 4], 0xe
call fcn.0040b5a6
add esp, 0xc
lea ecx, [ebp - 0xec]
push str.gzip1
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.00401df9
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x10
call fcn.00401fdf
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0xec]
call fcn.0040241d
push ebx
push edi
lea ecx, [ebp - 0x108]
call fcn.0040241d
push ebx
push edi
lea ecx, [ebp - 0xbc]
call fcn.0040241d
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.0040241d
push ebx
push edi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.0040241d
lea eax, [ebp - 0x60]
push eax
call fcn.00405450
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x12c]
mov edi, dword [eax]
jmp 0x405d73
push ebx
push 0x52c95e
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00402366
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.004051d4
add esp, 0x14
lea ebx, [ebp - 0x60]
mov byte [ebp - 4], 0x13
call fcn.0040548a
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 0x12
call fcn.00404ee4
push 0
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x11
call fcn.0040241d
xor ebx, ebx
cmp dword [ebp - 0x60], 0xc8
je 0x405db9
mov eax, dword [ebp - 0x12c]
add edi, 0x1c
cmp edi, dword [eax + 4]
jne 0x405cf2
cmp dword [ebp - 0x60], 0xc8
je 0x405db9
push str.SensorsAnalytics_SDK_send_failed:
push 0x54efc8
call fcn.0040b1cc
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040b375
add esp, 0xc
push eax
call fcn.0040e271
pop ecx
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0xb
call fcn.00404ee4
jmp 0x405c0f
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0xb
call fcn.00404ee4
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.0040241d
mov byte [ebp - 0x125], 1
push ebx
push 1
lea ecx, [ebp - 0x124]
call fcn.0040241d
cmp byte [ebp - 0x125], bl
jne 0x405e9c
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 0x405e89
mov eax, dword [ebp - 0x13c]
sub eax, dword [ebp - 0x140]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, esi
jbe 0x405e30
sub eax, esi
jmp 0x405e32
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.00408142
mov edx, eax
lea eax, [ebp - 0x168]
call fcn.00405f5b
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.00405f5b
push dword [ebp - 0x144]
call fcn.0040c552
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 6
lea edi, [ebp - 0x154]
call fcn.0040927c
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 1
call fcn.004083cd
lea eax, [ebp - 0x1c0]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004d452f
pop ecx
cmp dword [ebp - 0x140], ebx
je 0x405ef2
push dword [ebp - 0x13c]
mov eax, dword [ebp - 0x140]
call fcn.00409036
push dword [ebp - 0x140]
call fcn.004d5740
pop ecx
mov bl, byte [ebp - 0x125]
jmp 0x405956