Function at 0x10099e20
Capabilities:
Receive http request
Send http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ebd86
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x10117fc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x1e4], edi
mov dword [ebp - 0x1f0], esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
push 0
push 0x800
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.10012f10
push pe_nt_image_headers32
lea eax, [ebp - 0x1d8]
push 0
push eax
call fcn.100bbb80
add esp, 0xc
mov dword [ebp - 0x1d0], 0x200c8
test byte [esi], 1
mov dword [ebp - 0x1cc], 0x100fc494
je 0x1009a06a
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x1ec]
push 0
push edx
push eax
cmp eax, 0xf
mov dword [ebp - 0x1ec], 0
lea ecx, [ebp - 0x88]
cmova ecx, dword [ebp - 0x88]
push ecx
push 0
push dword [esi + 0x14]
push dword [esi + 0x10]
push edi
call dword [sym.imp.HTTPAPI.dll_HttpReceiveRequestEntityBody]
mov esi, eax
mov dword [ebp - 0x1e8], esi
test esi, esi
je 0x10099f30
cmp esi, 0x26
jne 0x1009a06a
mov esi, dword [ebp - 0x1ec]
test esi, esi
je 0x1009a056
cmp dword [ebp - 0x78], esi
lea eax, [ebp - 0x88]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
cmovb esi, dword [ebp - 0x78]
cmp dword [ebp - 0x74], 0xf
movups xmmword [ebp - 0x58], xmm0
cmova eax, dword [ebp - 0x88]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x1e0], eax
cmp esi, 0x7fffffff
ja 0x1009a55e
cmp esi, 0xf
ja 0x10099fa7
push esi
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
push eax
mov dword [ebp - 0x44], 0xf
call fcn.100bbf40
mov byte [ebp + esi - 0x58], 0
add esp, 0xc
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x58]
jmp 0x1009a000
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x10099fba
mov eax, closesocket
jmp 0x10099fc5
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x1dc], eax
lea eax, [ebp - 0x1dc]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10003a60
push esi
push dword [ebp - 0x1e0]
mov edi, eax
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x1dc]
push edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x44], eax
call fcn.100bbf40
add esp, 0x14
mov byte [edi + esi], 0
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x58]
push esi
cmova eax, edi
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x70]
call fcn.1001a470
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x1009a050
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009a046
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a56d
push ecx
push edx
call fcn.100ba39a
add esp, 8
mov edi, dword [ebp - 0x1e4]
cmp dword [ebp - 0x1e8], 0x26
je 0x1009a06a
mov esi, dword [ebp - 0x1f0]
jmp 0x10099ee4
cmp dword [ebp - 0x60], 0
je 0x1009a42e
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.10081620
add esp, 8
cmp dword [eax + 0x14], 7
mov byte [ebp - 4], 3
jbe 0x1009a093
mov eax, dword [eax]
push eax
call sym.LunaHook32.dll_internal_renpy_call_host
add esp, 4
lea ecx, [ebp - 0xa0]
push eax
call fcn.10004530
push 0xfde9
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100819c0
mov esi, eax
add esp, 0xc
lea eax, [ebp - 0x70]
cmp eax, esi
je 0x1009a135
mov ecx, dword [ebp - 0x5c]
cmp ecx, 0xf
jbe 0x1009a101
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009a0f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a559
push ecx
push edx
call fcn.100ba39a
add esp, 8
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1009a169
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009a15f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a559
push ecx
push edx
call fcn.100ba39a
add esp, 8
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.100049f0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.100049f0
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x1dc], ecx
test ecx, ecx
je 0x1009a42e
lea edi, [ebp - 0x13]
nop dword [eax]
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x1dc]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [edi], al
mov eax, edx
mov dword [ebp - 0x1dc], eax
test eax, eax
jne 0x1009a1b0
lea eax, [ebp - 0x13]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
cmp edi, eax
jne 0x1009a20c
mov ecx, 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x44], ecx
jmp 0x1009a2a9
lea esi, [ebp - 0x13]
sub esi, edi
mov dword [ebp - 0x1e0], esi
cmp esi, 0x7fffffff
ja 0x1009a55e
cmp esi, 0xf
ja 0x1009a247
push esi
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
push edi
push eax
mov dword [ebp - 0x44], 0xf
call fcn.100bbf40
add esp, 0xc
mov byte [ebp + esi - 0x58], 0
jmp 0x1009a2a6
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x1009a259
mov esi, closesocket
jmp 0x1009a264
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10003a60
mov ecx, dword [ebp - 0x1dc]
mov esi, eax
mov eax, dword [ebp - 0x1e0]
push eax
push edi
push esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
call fcn.100bbf40
mov eax, dword [ebp - 0x1e0]
add esp, 0x14
mov byte [esi + eax], 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x58]
cmp ecx, 0xf
cmova eax, edx
mov dword [ebp - 0x15c], eax
jbe 0x1009a2e6
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009a2dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a563
push ecx
push edx
call fcn.100ba39a
add esp, 8
mov ecx, dword [ebp - 0x60]
lea edi, [ebp - 0x2b]
mov dword [ebp - 0x1dc], ecx
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x1dc]
add cl, cl
sub al, cl
mov ecx, edx
add al, 0x30
mov byte [edi], al
mov eax, edx
mov dword [ebp - 0x1dc], eax
test eax, eax
jne 0x1009a2f2
lea eax, [ebp - 0x2b]
xorps xmm0, xmm0
movups xmmword [ebp - 0x58], xmm0
cmp edi, eax
jne 0x1009a34a
mov edx, 0xf
mov byte [ebp - 0x58], 0
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], edx
jmp 0x1009a3e3
lea esi, [ebp - 0x2b]
sub esi, edi
cmp esi, 0x7fffffff
ja 0x1009a568
cmp esi, 0xf
ja 0x1009a382
push esi
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
push edi
push eax
mov dword [ebp - 0x44], 0xf
call fcn.100bbf40
mov byte [ebp + esi - 0x58], 0
add esp, 0xc
mov edi, dword [ebp - 0x58]
jmp 0x1009a3e0
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x1009a395
mov eax, closesocket
jmp 0x1009a3a0
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x1e0], eax
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10003a60
mov dword [ebp - 0x1e8], eax
push esi
push edi
mov edi, dword [ebp - 0x1e8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x1e0]
push edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], eax
call fcn.100bbf40
add esp, 0x14
mov byte [edi + esi], 0
mov edx, dword [ebp - 0x44]
cmp edx, 0xf
lea ecx, [ebp - 0x58]
cmova ecx, edi
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009a3f0
sub ecx, esi
mov word [ebp - 0x160], cx
cmp edx, 0xf
jbe 0x1009a42e
inc edx
mov eax, edi
cmp edx, 0x1000
jb 0x1009a424
mov edi, dword [eax - 4]
add edx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a56d
push edx
push edi
call fcn.100ba39a
add esp, 8
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x1f4]
mov edi, dword [ebp - 0x1f0]
neg eax
push 0
push 0
push 0
push 0
push ecx
push 0
sbb eax, eax
lea ecx, [ebp - 0x1d8]
push ecx
and eax, 2
push eax
push dword [edi + 0x14]
push dword [edi + 0x10]
push dword [ebp - 0x1e4]
call dword [sym.imp.HTTPAPI.dll_HttpSendHttpResponse]
mov esi, eax
test esi, esi
jne 0x1009a4c0
mov ecx, dword [ebp - 0x60]
test ecx, ecx
je 0x1009a4c0
cmp dword [ebp - 0x5c], 0xf
lea eax, [ebp - 0x70]
push 0
cmova eax, dword [ebp - 0x70]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push dword [edi + 0x14]
mov dword [ebp - 0x214], 0
push dword [edi + 0x10]
mov dword [ebp - 0x208], ecx
push dword [ebp - 0x1e4]
call dword [sym.imp.HTTPAPI.dll_HttpSendResponseEntityBody]
mov esi, eax
mov ecx, dword [ebp - 0x74]
cmp ecx, 0xf
jbe 0x1009a4f7
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009a4ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a56d
push ecx
push edx
call fcn.100ba39a
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp ecx, 0xf
jbe 0x1009a53c
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1009a532
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009a56d
push ecx
push edx
call fcn.100ba39a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ba6c2
mov esp, ebp
pop ebp
ret
call fcn.100c657f
call fcn.10007830
call fcn.100c657f
call fcn.10007830
call fcn.100c657f
int3