Function at 0x10013003
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebx + ecx*4 + 0x190]
mov dword [ebp - 0x34], eax
mov eax, dword [eax]
push esi
mov esi, dword [ebx]
mov dword [ebp - 0x28], eax
lea eax, [ebx + ecx*4 + 0x740]
push edi
xor edi, edi
cmp dword [eax], 2
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], eax
je 0x10013909
mov dword [ebx + 0x400], edi
cmp dword [eax], edi
jne 0x10013276
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x100380f8
push esi
call fcn.1001e3ce
push dword [esi + 0x10c]
call dword [0x1003532c]
and dword [esi + 0x10c], 0
add esp, 0x14
call fcn.1000f61c
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100137e4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x100380f0
call sym.libcurl.dll_curl_maprintf
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x100137ec
push 1
push ebx
push 0x100380e8
push dword [ebp + 8]
call fcn.1000f1ee
push ebx
mov edi, eax
call dword [0x1003532c]
add esp, 0x14
test edi, edi
jne 0x10013259
and dword [ebp - 0xc], edi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xe8], 1
mov edi, 0x10035921
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0x10037460
je 0x100130f8
mov dword [ebp - 0x24], 0x10037464
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x3c0]
cmp ecx, dword [ebx + 0x98]
je 0x1001311a
push 0x3a
push ecx
call dword [sym.imp.MSVCR100.dll_strchr]
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
mov ecx, 0x10037918
test eax, eax
jne 0x10013344
mov ecx, edi
mov eax, edi
push dword [ebp + 0x14]
push ecx
push dword [ebp + 0x10]
push eax
push 0x100380dc
call sym.libcurl.dll_curl_maprintf
add esp, 0x14
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100137ec
push 0x10037590
push ebx
call fcn.1000ecdd
pop ecx
pop ecx
test eax, eax
jne 0x10013176
push dword [ebp - 0x14]
push 0x100380d0
call sym.libcurl.dll_curl_maprintf
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100137f7
push 0x100377dc
push ebx
call fcn.1000ecdd
pop ecx
pop ecx
test eax, eax
jne 0x1001318e
mov dword [ebp - 4], 0x100377bc
push 0x100379ec
push ebx
call fcn.1000ecdd
pop ecx
pop ecx
test eax, eax
jne 0x100131b0
cmp dword [esi + 0x4ac], eax
je 0x100131b0
mov eax, dword [ebx + 0x458]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebx + 0x454]
test ebx, ebx
jne 0x100131bc
mov ebx, edi
cmp dword [ebp - 0xc], 0
je 0x100131c5
mov edi, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x20]
push ebx
mov ebx, dword [ebp - 0x10]
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push 0x100380b0
push ebx
call fcn.1000fe80
add esp, 0x20
cmp dword [ebp - 0xc], 0
mov edi, eax
je 0x100131f6
push dword [ebp - 0xc]
call dword [0x1003532c]
pop ecx
push dword [ebp - 0x14]
call dword [0x1003532c]
pop ecx
test edi, edi
jne 0x10013244
push ebx
push 1
push dword [ebp + 8]
call fcn.1000ffb4
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10013244
push 0x10036194
push ebx
call fcn.1000fe80
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10013244
push dword [ebp + 0xc]
push eax
lea eax, [esi + 0x48f8]
push eax
push dword [ebp + 8]
push ebx
call fcn.1000f648
add esp, 0x14
mov edi, eax
and dword [ebp - 0x10], 0
test edi, edi
je 0x10013259
push 0x10038090
push esi
call fcn.1001e441
pop ecx
pop ecx
push dword [ebp - 0x10]
call fcn.1000f629
pop ecx
test edi, edi
jne 0x1001380b
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [eax], 1
push 1
push edi
push esi
call fcn.10001d24
add esp, 0xc
cmp edx, edi
jl 0x10013812
jg 0x10013294
cmp eax, edi
jbe 0x10013812
cmp dword [ebp + 0x18], edi
jne 0x100132ac
push dword [ebp + 0xc]
push ebx
call fcn.10002783
pop ecx
pop ecx
test eax, eax
je 0x10013909
mov edi, dword [esi + 0x6e4]
and dword [ebp - 0x14], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], edi
cmp dword [ebp - 0x10], 0
je 0x10013758
push ebx
call fcn.1001c459
pop ecx
test eax, eax
jne 0x10013823
mov eax, dword [esi + 0x6e4]
add eax, 0x4000
cmp edi, eax
jae 0x10013827
push 1
push 0
push esi
call fcn.10001d24
add esp, 0xc
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
test edx, edx
jl 0x10013709
jg 0x10013315
test eax, eax
jbe 0x10013709
lea eax, [ebp - 0x30]
push eax
push 1
push edi
push dword [ebp - 0x28]
push ebx
call fcn.1001e18e
add esp, 0x14
cmp eax, 0x51
jne 0x10013379
mov ecx, dword [ebp - 0x44]
test ecx, ecx
jg 0x1001334e
jl 0x1001333f
cmp dword [ebp - 0x48], 0x3e8
jae 0x1001334e
mov eax, dword [ebp - 0x48]
jmp 0x10013355
mov eax, 0x10037904
jmp 0x1001312b
mov eax, 0x3e8
xor ecx, ecx
push ecx
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x28]
call fcn.1001d911
add esp, 0x14
cmp eax, 0xffffffff
jne 0x100136fa
push 0x10038060
jmp 0x10013749
test eax, eax
jne 0x10013758
xor ecx, ecx
cmp dword [ebp - 0x30], ecx
jle 0x1001371d
inc dword [ebp - 0x14]
cmp dword [ebp - 0x10], 1
jle 0x10013403
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
mov edi, dword [esi + 0x6e4]
mov dword [ebp - 0x14], ecx
je 0x100133c8
add dword [ebp - 0x40], 0xffffffff
adc dword [ebp - 0x3c], 0xffffffff
js 0x10013758
jg 0x100132c4
cmp dword [ebp - 0x40], ecx
jbe 0x10013758
jmp 0x100132c4
and dword [ebp - 0x24], ecx
lea eax, [ebp - 0x24]
push eax
push 1
push edi
push ebx
call fcn.100125db
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100132c4
push 0x1003804c
push esi
call fcn.1001e3ce
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
pop ecx
pop ecx
mov dword [eax], 2
jmp 0x100132c4
inc dword [ebp - 0xc]
cmp byte [edi], 0xa
je 0x10013411
inc edi
jmp 0x100136fa
cmp dword [esi + 0x3c4], ecx
je 0x1001342d
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
push 1
push esi
call fcn.1001e30e
add esp, 0x14
xor ecx, ecx
cmp dword [esi + 0x560], ecx
jne 0x1001345d
push 2
pop eax
cmp dword [esi + 0x3ac], ecx
je 0x10013443
push 3
pop eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push eax
push ebx
call fcn.1001e73f
add esp, 0x10
test eax, eax
jne 0x1001390b
xor ecx, ecx
mov eax, dword [ebp - 0xc]
add dword [esi + 0x48f4], eax
add dword [esi + 0x80], eax
mov eax, dword [ebp - 4]
mov al, byte [eax]
cmp al, 0xd
je 0x10013647
cmp al, 0xa
je 0x10013647
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push 0x11
push edi
push 0x10037b3c
mov byte [eax + edi], 0
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x100134ac
mov eax, dword [esi + 0xc8]
cmp eax, 0x191
je 0x100134cd
push 0x13
push edi
push 0x10037b28
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x10013516
mov eax, dword [esi + 0xc8]
cmp eax, 0x197
jne 0x10013516
push dword [ebp - 4]
xor ecx, ecx
cmp eax, 0x197
sete cl
mov dword [ebp - 0x24], ecx
call fcn.1000ed3d
mov edi, eax
pop ecx
test edi, edi
je 0x100137e4
push edi
push dword [ebp - 0x24]
push ebx
call fcn.1000f2ed
push edi
mov dword [ebp - 0x24], eax
call dword [0x1003532c]
add esp, 0x10
cmp dword [ebp - 0x24], 0
je 0x10013635
mov eax, dword [ebp - 0x24]
jmp 0x1001390b
push 0xf
push edi
push 0x10037754
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x1001356d
mov ecx, dword [esi + 0xc8]
mov eax, ecx
push 0x64
cdq
pop edi
idiv edi
cmp eax, 2
jne 0x1001354e
push ecx
push 0x10038018
push esi
call fcn.1001e3ce
jmp 0x100135e9
mov eax, dword [ebp - 4]
push 0xa
add eax, 0xf
push 0
push eax
call dword [sym.imp.MSVCR100.dll__strtoi64]
add esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jmp 0x10013635
mov edi, 0x10037bf4
push edi
push 0x10037bc0
push dword [ebp - 4]
call fcn.1000f884
add esp, 0xc
test eax, eax
jne 0x10013603
push 0x12
push dword [ebp - 4]
push 0x10037550
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x100135ee
mov ecx, dword [esi + 0xc8]
mov eax, ecx
push 0x64
cdq
pop edi
idiv edi
cmp eax, 2
jne 0x100135b8
push ecx
push 0x10037fe0
jmp 0x10013543
push 0x10037994
push 0x10037550
push dword [ebp - 4]
call fcn.1000f884
add esp, 0xc
test eax, eax
je 0x10013635
push 0x10037fc4
push esi
call fcn.1001e3ce
push ebx
mov dword [ebp - 0x2c], 1
call fcn.100125c8
add esp, 0xc
jmp 0x10013635
push edi
push 0x100377dc
push dword [ebp - 4]
call fcn.1000f884
add esp, 0xc
test eax, eax
je 0x1001360c
mov dword [ebp - 0x18], 1
jmp 0x10013635
lea edi, [esi + 0xc8]
push edi
lea eax, [ebp - 0x38]
push eax
push 0x10037fb4
push dword [ebp - 4]
call dword [sym.imp.MSVCR100.dll_sscanf]
add esp, 0x10
cmp eax, 2
jne 0x10013635
mov eax, dword [edi]
mov dword [esi + 0x48e4], eax
mov edi, dword [esi + 0x6e4]
and dword [ebp - 0xc], 0
mov dword [ebp - 4], edi
jmp 0x100136fa
cmp dword [esi + 0xc8], 0x197
mov edi, dword [esi + 0x6e4]
mov dword [ebp - 0x14], ecx
jne 0x100136ee
cmp dword [esi + 0x480c], ecx
jne 0x100136ee
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 2
je 0x10013691
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push 0x10037f8c
push esi
call fcn.1001e3ce
add esp, 0x10
jmp 0x100136f1
cmp dword [ebp - 0x2c], ecx
je 0x100136ee
push 0x10037f6c
push esi
call fcn.1001e3ce
mov eax, dword [ebp - 4]
inc eax
pop ecx
mov dword [esi + 0x100], 1
cmp byte [eax], 0xa
pop ecx
jne 0x100136b9
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
push 1
inc eax
push eax
push ebx
call fcn.100125db
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100136f1
push 0x1003804c
push esi
call fcn.1001e3ce
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
pop ecx
pop ecx
mov dword [eax], 2
jmp 0x100136f1
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x4000
jb 0x100132c4
jmp 0x10013758
push 0x10037f44
push esi
call fcn.1001e441
mov dword [ebp - 0x1c], 2
jmp 0x10013756
cmp dword [esi + 0x158], ecx
je 0x10013744
cmp dword [esi + 0x47fc], ecx
je 0x10013744
push 0x10037f20
push esi
mov dword [ebx + 0x400], 1
call fcn.1001e3ce
jmp 0x10013756
push 0x10037f08
push esi
mov dword [ebp - 0x1c], 1
call fcn.1001e441
pop ecx
pop ecx
push ebx
call fcn.1001c459
pop ecx
test eax, eax
jne 0x10013823
xor edi, edi
cmp dword [ebp - 0x1c], edi
jne 0x1001381f
cmp dword [esi + 0x48e4], 0xc8
je 0x1001379c
push ebx
call fcn.1000fcd2
pop ecx
cmp eax, edi
jne 0x1001390b
cmp dword [ebx + 0x39c], edi
je 0x1001379c
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], edi
je 0x100137ad
cmp dword [esi + 0x10c], edi
jne 0x1001382e
cmp dword [esi + 0x10c], edi
je 0x10013840
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jne 0x100137d2
push edi
push 0x10037ee8
push esi
mov dword [eax], edi
call fcn.1001e3ce
add esp, 0xc
cmp dword [esi + 0x10c], edi
je 0x10013840
mov eax, dword [ebp - 8]
xor edi, edi
jmp 0x10013050
push 0x1b
pop eax
jmp 0x1001390b
push dword [ebp - 0x10]
call fcn.1000f629
pop ecx
jmp 0x100137e4
push dword [ebp - 0x14]
call dword [0x1003532c]
push dword [ebp - 0x10]
call fcn.1000f629
pop ecx
jmp 0x100137f4
mov eax, edi
jmp 0x1001390b
push 0x10037f44
push esi
call fcn.1001e441
pop ecx
pop ecx
push 0x38
jmp 0x100137e6
push 0x2a
jmp 0x100137e6
push 0x10037ecc
jmp 0x10013817
mov edi, dword [ebp - 0x34]
push dword [edi]
push ebx
call fcn.1000262c
or dword [edi], 0xffffffff
pop ecx
pop ecx
xor edi, edi
cmp dword [esi + 0xc8], 0xc8
je 0x100138c6
cmp dword [ebp - 0x18], edi
je 0x10013872
cmp dword [esi + 0x10c], edi
je 0x10013872
push 0x10037eb0
push esi
mov dword [ebx + 0x400], 1
call fcn.1001e3ce
pop ecx
pop ecx
jmp 0x100138a0
push dword [esi + 0x10c]
call dword [0x1003532c]
and dword [esi + 0x10c], 0
push 2
push ebx
call fcn.1000273a
mov edi, dword [ebp - 0x34]
push dword [edi]
push ebx
call fcn.1000262c
or dword [edi], 0xffffffff
add esp, 0x14
xor edi, edi
mov eax, dword [ebp - 8]
mov dword [eax], edi
cmp dword [ebx + 0x400], edi
jne 0x10013909
push dword [esi + 0xc8]
push 0x10037e80
push esi
call fcn.1001e441
add esp, 0xc
jmp 0x1001381f
mov eax, dword [ebp - 8]
mov dword [eax], 2
push dword [ebx + 0x454]
call dword [0x1003532c]
and dword [ebx + 0x454], 0
mov dword [esp], 0x10037e58
push esi
mov dword [esi + 0x4800], 1
call fcn.1001e3ce
and dword [esi + 0x100], 0
and dword [ebx + 0x3e4], 0
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret