Function at 0x100f1757
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1016233c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
mov eax, dword [0x101b9540]
push ebx
push esi
mov dword [esp + reloc.WINMM.dll_midiStreamOut], eax
mov eax, dword [0x101cf000]
xor esi, esi
cmp eax, esi
push edi
jne 0x100f179c
mov eax, 1
jmp 0x100f1cac
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], 0x1388
call fcn.101f821e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + reloc.WINMM.dll_midiStreamOut], esi
call fcn.101f821e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov word [esp + 0x65], ax
mov byte [esp + 0x47c], 1
mov dword [esp + 0x48], 0x10174900
mov dword [esp + 0x4c], esi
mov byte [esp + 0x54], 0
mov byte [esp + 0x67], al
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x14], esi
call fcn.101f821e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x47c], 2
call fcn.101f821e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x18]
cmp ecx, esi
mov byte [esp + 0x47c], 3
jne 0x100f186b
mov eax, 0x101cfa6c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100f185a
sub eax, edx
push eax
push 0x101cfa6c
jmp 0x100f1882
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100f1877
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.100a8517
cmp dword [ebp + 0x20], esi
je 0x100f18ad
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push 0x101748ec
lea ecx, [esp + 0x34]
push ecx
jmp 0x100f18c8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
push 0x101748d8
lea eax, [esp + 0x34]
push eax
call fcn.100a7277
add esp, 0x18
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
call fcn.102001eb
push esi
push esi
push esi
push esi
push 0x10174860
call dword [fcn.101676e8]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x3c], ebx
je 0x100f1c0d
mov edi, dword [0x10167714]
push 4
lea eax, [esp + 0x30]
push eax
push 2
push ebx
call edi
push 4
lea ecx, [esp + 0x30]
push ecx
push 6
push ebx
call edi
push 4
lea edx, [esp + 0x30]
push edx
push 5
push ebx
call edi
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
push esi
push 0x200
push 3
push esi
push esi
push eax
push ecx
push ebx
call dword [0x101676fc]
cmp eax, esi
mov dword [esp + 0x40], eax
je 0x100f1c06
mov edx, dword [ebp + 0x20]
neg edx
push esi
sbb edx, edx
and edx, 0x800000
or edx, 0x8408c200
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x50]
push ecx
push esi
push esi
push edx
push 0x10167eec
push eax
call dword [0x10167710]
mov esi, eax
test esi, esi
mov dword [esp + 0x30], esi
je 0x100f1bfb
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x100f19b1
push 0x20000000
push 0xffffffffffffffff
push 0x1017482c
push esi
call dword [0x101676f4]
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100f1a1c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x1f
push esi
mov dword [esp + 0x2c], 4
call dword [0x101676f0]
test eax, eax
je 0x100f1a06
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x14]
push eax
push 0x1f
or ecx, 0x3380
push esi
mov dword [esp + 0x20], ecx
call edi
test eax, eax
jne 0x100f1a1c
call dword [fcn.10167434]
push eax
push 0x1017480c
jmp 0x100f1a12
call dword [fcn.10167434]
push eax
push 0x101747ec
push 2
call fcn.10143187
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push 0
push 0
push esi
call dword [0x101676ec]
test eax, eax
je 0x100f1bf4
mov edi, dword [0x10167708]
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
push ecx
push 0x13
push esi
call edi
test eax, eax
je 0x100f1bf4
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jae 0x100f1a64
mov byte [esp + eax + 0x54], 0
lea edx, [esp + 0x54]
push edx
call fcn.101a749c
mov ecx, dword [esp + 0x24]
push ecx
push eax
push 0x101747d4
push 2
mov dword [esp + 0x28], eax
call fcn.10143187
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, 0xc8
jne 0x100f1bf4
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x100f1bec
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x5c]
push eax
push 5
push esi
call edi
test eax, eax
je 0x100f1bad
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jae 0x100f1ac8
mov byte [esp + eax + 0x54], 0
lea ecx, [esp + 0x54]
push ecx
call fcn.101a749c
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x100f1bec
cmp eax, 0x3e8
jae 0x100f1bec
inc eax
push eax
call fcn.101f81ff
mov dword [esp + 0x20], eax
xor eax, eax
mov byte [esp + 0x6c], 0
mov ecx, 0xff
lea edi, [esp + 0x6d]
rep stosd dword es:[edi], eax
add esp, 4
stosw word es:[edi], ax
lea edx, [esp + 0x10]
push edx
stosb byte es:[edi], al
push 0x400
lea eax, [esp + 0x70]
push eax
xor ebx, ebx
push esi
mov dword [esp + 0x20], ebx
call dword [fcn.1016770c]
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x100f1b85
lea esp, [esp]
mov eax, dword [esp + 0x14]
lea edx, [ebx + ecx]
cmp edx, eax
ja 0x100f1b85
mov eax, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
lea edi, [ebx + eax]
lea esi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add ebx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x400
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [fcn.1016770c]
mov ecx, dword [esp + 0x10]
test ecx, ecx
mov esi, dword [esp + 0x30]
jne 0x100f1b37
cmp ebx, dword [esp + 0x14]
jne 0x100f1b9d
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x68]
push eax
mov byte [esp + ebx + 0x6c], 0
call fcn.100a91d7
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.101f81fa
mov ebx, dword [esp + 0x40]
jmp 0x100f1be9
push 0x401
call fcn.101f81ff
add esp, 4
lea edx, [esp + 0x14]
push edx
push 0x400
mov edi, eax
push edi
push esi
call dword [fcn.1016770c]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x100f1be3
mov ecx, dword [ebp + 0x28]
push edi
mov byte [edi + eax], 0
call fcn.100a91d7
push edi
call fcn.101f81fa
add esp, 4
mov dword [esp + 0x38], 1
push esi
call dword [fcn.101676f8]
mov eax, dword [esp + 0x40]
push eax
call dword [fcn.101676f8]
push ebx
call dword [fcn.101676f8]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x47c], 2
lea ecx, [eax + 0xc]
or edx, reloc.WINMM.dll_midiStreamOut
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100f1c33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x47c], 1
lea ecx, [eax + 0xc]
or edx, reloc.WINMM.dll_midiStreamOut
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100f1c59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x47c], 0
lea ecx, [eax + 0xc]
or edx, reloc.WINMM.dll_midiStreamOut
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100f1c7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + reloc.WINMM.dll_midiStreamOut], 0xffffffff
lea ecx, [eax + 0xc]
or edx, reloc.WINMM.dll_midiStreamOut
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100f1ca8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + reloc.WINMM.dll_midiStreamOut]
mov dword fs:[0], ecx
mov ecx, dword [esp + reloc.WINMM.dll_midiStreamOut]
call fcn.101a6cf4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret