Function at 0x415840
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567ca5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x44], edi
cmp dword [edi + 0xc], 0
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], eax
je 0x415f9b
cmp dword [edi + 0x2c], 0
jne 0x41592b
push 0x10
call fcn.00563322
mov edi, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x3c], edi
movq qword [edi], xmm0
lea esi, [edi + 0xc]
mov dword [edi + 8], 0
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj2_class_teemo::ScopedCurl_.0
call fcn.00495b50
mov dword [esi], eax
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x2c], esi
mov esi, dword [eax + 0x30]
mov dword [eax + 0x30], edi
test esi, esi
je 0x415926
or edi, 0xffffffff
mov dword [ebp - 4], 0
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41591a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 1
lock xadd dword [esi + 8], edi
dec edi
jne 0x41591a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x44]
jmp 0x415928
mov edi, eax
mov esi, dword [ebp - 0x38]
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x3c], eax
call fcn.00495f20
add esp, 4
push 0
push 0x29
push dword [ebp - 0x3c]
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x415996
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_VERBOSE__0L__failed__return:__ld.
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x38], ecx
mov dword [ecx + 0x24], 0
mov dword [ebp - 4], 4
mov edx, dword [eax + 0xf4]
test edx, edx
je 0x415987
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
add esp, 0x30
push 1
push 0x63
push dword [ebp - 0x3c]
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x4159f0
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_NOSIGNAL__1L__failed__return:__ld.
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x38], ecx
mov dword [ecx + 0x24], 0
mov dword [ebp - 4], 5
mov edx, dword [eax + 0xf4]
test edx, edx
je 0x4159e1
mov eax, dword [edx]
push ecx
mov ecx, edx
mov eax, dword [eax]
call eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
add esp, 0x30
cmp dword [esi + 0x14], 0xf
jbe 0x4159f8
mov esi, dword [esi]
push esi
mov esi, dword [ebp - 0x3c]
push 0x2712
push esi
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x415a53
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_URL__url.c_str____failed__return:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x38], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 6
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x415a41
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
mov esi, dword [ebp - 0x3c]
add esp, 0x30
mov eax, dword [edi + 0xc]
cmp byte [eax + 2], 0
je 0x415a8e
push 1
push 0x2c
push esi
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x415ae1
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_NOBODY__1L__failed__return:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x38], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 7
jmp 0x415abe
push 0
push 0x2c
push esi
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x415ae1
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_NOBODY__0L__failed__return:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x38], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 8
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x415ad2
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
add esp, 0x30
mov esi, dword [ebp - 0x3c]
push 1
push 0x34
push esi
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x415b3a
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_FOLLOWLOCATION__1L__failed__return:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x38], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 9
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x415b28
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
mov esi, dword [ebp - 0x3c]
add esp, 0x30
mov eax, dword [edi + 0xc]
push dword [eax + 0x20]
push 0x9c
push esi
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x415b97
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_CONNECTTIMEOUT_MS__options___network_conn_timeout__failed__return:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x38], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0xa
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x415b85
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
mov esi, dword [ebp - 0x3c]
add esp, 0x30
push 0x413c30
push 0x4e2b
push esi
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x415bf3
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_WRITEFUNCTION____WriteBodyCallback__failed__return:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x38], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0xb
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x415be1
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
mov esi, dword [ebp - 0x3c]
add esp, 0x30
push 0x413c40
push 0x4e6f
push esi
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x415c4f
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_HEADERFUNCTION____WriteHeaderCallback__failed__return:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x38], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0xc
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x415c3d
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
mov esi, dword [ebp - 0x3c]
add esp, 0x30
push dword [ebp - 0x40]
push 0x272d
push esi
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x415ca9
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_HEADERDATA___void_fileInfo__failed__return:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x38], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0xd
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x415c97
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
mov esi, dword [ebp - 0x3c]
add esp, 0x30
mov ecx, dword [edi + 0xc]
cmp dword [ecx + 0x148], 0
jbe 0x415d25
movups xmm0, xmmword [ecx + 0x138]
sub esp, 0x18
mov eax, esp
push 0x2714
movups xmmword [eax], xmm0
push esi
movq xmm0, qword [ecx + 0x148]
movq qword [eax + 0x10], xmm0
call fcn.00499d80
add esp, 0x20
test eax, eax
je 0x415d25
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_PROXY__options___proxy__failed__return:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x38], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0xe
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x415d16
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
add esp, 0x30
mov esi, dword [edi + 0xc]
xor edx, edx
mov dword [ebp - 0x38], edx
cmp dword [esi + 0x134], edx
jbe 0x415f2e
mov esi, dword [esi + 0x130]
mov esi, dword [esi]
cmp byte [esi + 0xd], dl
jne 0x415ed7
nop word [eax + eax]
mov ecx, dword [esi + 0x20]
lea edi, [esi + 0x10]
mov eax, bind
sub eax, ecx
cmp eax, 2
jb 0x4160b1
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x415d70
mov eax, dword [edi]
push 2
push 0x59e43c
push ecx
push eax
push ecx
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
call fcn.00418720
add edi, 0x18
mov dword [ebp - 4], 0xf
cmp dword [edi + 0x14], 0xf
mov eax, dword [edi + 0x10]
jbe 0x415d9a
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.004174c0
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x30], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x20], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x415e16
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415e0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415fa2
push ecx
push edx
call fcn.00563352
add esp, 8
cmp dword [ebp - 0x1c], 0xf
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 0
cmova eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00495530
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov edx, eax
mov dword [ebp - 0x38], edx
cmp ecx, 0xf
jbe 0x415e7c
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415e6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415fa2
push ecx
push edx
call fcn.00563352
mov edx, dword [ebp - 0x38]
add esp, 8
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
cmp byte [eax + 0xd], 0
je 0x415eb4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x415eb0
cmp esi, dword [eax + 8]
jne 0x415eb0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x415ea0
mov esi, eax
jmp 0x415eca
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x415eca
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x415ec0
cmp byte [esi + 0xd], 0
je 0x415d50
mov edi, dword [ebp - 0x44]
push edx
push 0x2727
push dword [ebp - 0x3c]
call fcn.00499d80
add esp, 0xc
test eax, eax
je 0x415f2e
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__curl_easy_setopt_curl__CURLOPT_HTTPHEADER__headerChunk__failed__return:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x44], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0x10
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x415f1f
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
add esp, 0x30
push dword [ebp - 0x3c]
call fcn.00495d00
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x415f4b
push eax
call fcn.004955b0
add esp, 4
test esi, esi
je 0x415fa8
push esi
call fcn.004b6830
add esp, 4
push eax
mov eax, dword [edi + 0xc]
push esi
push str._DOWNLOAD_MANAGER__curl_easy_perform_failed__CURLcode:__ld__s_.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x40], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0x11
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x415f8c
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
add esp, 0x34
xor al, al
jmp 0x416091
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x10001f
push dword [ebp - 0x3c]
call fcn.00495b30
add esp, 0xc
test eax, eax
jne 0x415fe9
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x415fe9
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415fd3
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0x40]
push edx
lea ecx, [ecx + 0x28]
call fcn.0040b570
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x200002
push dword [ebp - 0x3c]
call fcn.00495b30
mov esi, eax
add esp, 0xc
test esi, esi
je 0x416038
push esi
call fcn.004b6830
add esp, 4
push eax
mov eax, dword [edi + 0xc]
push esi
push str._DOWNLOAD_MANAGER__Get_CURLINFO_RESPONSE_CODE_failed__CURLcode:__ld__s_.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x40], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0x12
jmp 0x415f78
mov eax, dword [ebp - 0x18]
cmp eax, 0xc8
je 0x41608f
cmp eax, 0x15e
je 0x41608f
push eax
mov eax, dword [edi + 0xc]
push str._DOWNLOAD_MANAGER__HTTP_response_code_error__code:__ld.
sub esp, 0x28
mov esi, esp
mov dword [ebp - 0x40], esi
mov dword [esi + 0x24], 0
mov dword [ebp - 4], 0x13
mov ecx, dword [eax + 0xf4]
test ecx, ecx
je 0x41607c
mov eax, dword [ecx]
push esi
mov eax, dword [eax]
call eax
mov dword [esi + 0x24], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004469d0
add esp, 0x30
xor al, al
jmp 0x416091
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00563360
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004015b0
int3