Function at 0x57a787
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10033330
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [reloc.WINMM.dll_midiStreamStop]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x10037550
lea ecx, [ebp - 0x18]
call fcn.0056aa07
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0056ac97
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.WINMM.dll_midiStreamStop
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x57a7f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x57a7fb
mov dword [eax], edi
mov dword [ebp - 0x1c], edi
call dword [0x100351c8]
mov ebx, dword [reloc.WINMM.dll_midiStreamStop]
mov dword [ebp - 0x20], eax
jmp 0x57a817
mov ecx, 3
mov word [ebp - 0x40], cx
mov dword [ebp - 0x38], 1
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x40]
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [ebp - 0x3c]
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x38]
mov dword [eax + 8], edi
mov edi, dword [ebp - 0x34]
push ecx
mov ecx, dword [edx + 0x54]
mov dword [eax + 0xc], edi
call ecx
mov edi, eax
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
push edx
call ebx
test edi, edi
jne 0x57a91c
cmp word [ebp - 0x1c], 0xffff
je 0x57a92c
mov edi, dword [reloc.WINMM.dll_midiStreamStop]
call edi
mov ecx, eax
mov eax, dword [ebp + 0xc]
sub ecx, dword [eax]
cmp ecx, dword [eax + 4]
jge 0x57a895
call edi
sub eax, dword [ebp - 0x20]
cmp eax, 0x2710
jl 0x57a817
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x58]
push eax
call edx
cmp word [ebp - 0x1c], 0xffff
je 0x57a92c
push 0x10037520
add esi, 0x74
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.0056a007
add esp, 0xc
mov byte [ebp - 4], 5
push 2
push eax
mov ecx, 0x100436dc
call fcn.0057ce27
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.WINMM.dll_midiStreamStop
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x57a8f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], reloc.WINMM.dll_midiStreamStop
lea ecx, [ebp - 0x10]
call fcn.0056ad77
mov eax, 0xfffffc16
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x58]
call eax
jmp 0x57a8a0
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
xor edi, edi
cmp eax, edi
jne 0x57accd
cmp dword [ebp - 0x24], 0xc8
jne 0x57accd
cmp dword [esi + 0x28], edi
jne 0x57aba9
push 0x10037510
lea ecx, [ebp + 0xc]
call fcn.0056aa07
mov byte [ebp - 4], 0xc
mov eax, dword [esi + 0x20]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
cmp eax, edi
jl 0x57a9c0
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0056aa07
mov byte [ebp - 4], 0xd
push 0x1003750c
push 0x10037428
lea ecx, [ebp - 0x18]
call fcn.00579f67
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.00569987
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.00568707
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
push ecx
push eax
call edx
cmp eax, edi
mov eax, dword [ebp - 0x14]
jne 0x57ab41
cmp eax, edi
je 0x57ab4c
push eax
lea ecx, [ebp - 0x18]
call fcn.0056aa07
mov bl, 0xe
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], edi
jl 0x57aa61
push 0x10037500
push eax
call fcn.005851ec
add esp, 8
cmp eax, edi
je 0x57aa61
sub eax, dword [ebp - 0x18]
sar eax, 1
js 0x57aa61
mov eax, dword [ebp - 0x14]
push eax
call dword [0x10035210]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.00568707
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00568707
mov dword [ebp - 4], reloc.WINMM.dll_midiStreamStop
lea ecx, [ebp - 0x10]
call fcn.0056ad77
mov eax, 0xfffffc13
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0056aa07
mov edi, eax
mov byte [ebp - 4], 0xf
push 0x100374f0
lea ecx, [ebp - 0x2c]
call fcn.0056aa07
mov byte [ebp - 4], 0x10
push edi
push eax
lea edx, [ebp - 0x28]
push edx
call fcn.00569f47
add esp, 0xc
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.00569987
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x28]
call fcn.00568707
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
call fcn.00568707
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
call fcn.00568707
lea eax, [ebp + 0xc]
push eax
add esi, 0x74
lea ecx, [ebp - 0x30]
push esi
push ecx
call fcn.00569f47
add esp, 0xc
mov byte [ebp - 4], 0x12
push 2
push eax
mov ecx, 0x100436dc
call fcn.0057ce27
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
call fcn.00568707
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x57ab04
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.00568707
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00568707
mov dword [ebp - 4], reloc.WINMM.dll_midiStreamStop
lea ecx, [ebp - 0x10]
call fcn.0056ad77
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, edi
je 0x57ab4c
push eax
call dword [0x10035210]
push 0x100374dc
lea ecx, [ebp + 0x10]
call fcn.0056aa07
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.00569987
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0x10]
call fcn.00568707
lea eax, [ebp + 0xc]
push eax
add esi, 0x74
lea ecx, [ebp + 0x10]
push esi
push ecx
call fcn.00569f47
add esp, 0xc
mov byte [ebp - 4], 0x14
push 2
push eax
mov ecx, 0x100436dc
call fcn.0057ce27
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0x10]
jmp 0x57aa28
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
lea ecx, [esi + 0x58]
push ecx
push eax
call edx
lea edx, [ebp + 0x10]
cmp eax, edi
jne 0x57ac9e
mov eax, dword [esi + 0x20]
mov dword [ebp + 0x10], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
cmp eax, edi
jl 0x57ac73
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0056aa07
mov ebx, eax
mov byte [ebp - 4], 0x15
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
jge 0x57abf8
or eax, reloc.WINMM.dll_midiStreamStop
jmp 0x57ac13
push 0x100374c8
push eax
call fcn.005851ec
add esp, 8
cmp eax, edi
jne 0x57ac0f
or eax, reloc.WINMM.dll_midiStreamStop
jmp 0x57ac13
sub eax, dword [ebx]
sar eax, 1
cmp eax, edi
setg bl
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00568707
mov edx, dword [ebp + 0x10]
test bl, bl
je 0x57ac5d
push edx
call dword [0x10035210]
push 0x10037490
add esi, 0x74
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.0056a007
add esp, 0xc
mov byte [ebp - 4], 0x16
push 2
push eax
mov ecx, 0x100436dc
call fcn.0057ce27
jmp 0x57aa2d
lea ecx, [esi + 0x68]
push ecx
push edx
mov ecx, esi
call fcn.0057a547
mov eax, dword [ebp + 0x10]
push eax
call dword [0x10035210]
push 0x10037470
add esi, 0x74
lea ecx, [ebp + 0xc]
push esi
push ecx
call fcn.0056a007
add esp, 0xc
mov byte [ebp - 4], 0x17
push 2
push eax
mov ecx, 0x100436dc
call fcn.0057ce27
jmp 0x57ab10
push 0x10037454
add esi, 0x74
push esi
push edx
call fcn.0056a007
add esp, 0xc
mov byte [ebp - 4], 0x18
push 2
push eax
mov ecx, 0x100436dc
call fcn.0057ce27
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
jmp 0x57aa34
mov eax, dword [reloc.WINMM.dll_midiStreamStop]
mov edx, dword [eax + 0xc]
mov ecx, 0x1004213c
call edx
add eax, 0x10
mov dword [ebp + 0x10], eax
mov bl, 8
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp + 0x10]
push 0x10037430
push ecx
call fcn.00569d07
lea edx, [ebp + 0x10]
push edx
add esi, 0x74
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.00569f47
add esp, 0x18
mov byte [ebp - 4], 9
push 2
push eax
mov ecx, 0x100436dc
call fcn.0057ce27
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.WINMM.dll_midiStreamStop
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x57ad40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.WINMM.dll_midiStreamStop
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x57ad63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], reloc.WINMM.dll_midiStreamStop
lea ecx, [ebp - 0x10]
call fcn.0056ad77
mov eax, 0xfffffc12
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc