Function at 0x10050e30
Capabilities:
Send http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push ebx
push esi
mov esi, dword [ebp + 0x18]
mov edx, esi
mov dword [ebp - 0x10], ecx
push edi
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10050e60
sub edx, ecx
mov eax, 0x100a0dc0
lea ecx, [ebp - 0x48]
cmovne eax, esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x44]
call fcn.1000acd0
lea edx, [ebp - 0x48]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.1005de40
lea ecx, [ebp - 0x48]
call fcn.1000abe0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.10001690
push 0x100a0d04
mov esi, eax
call fcn.100107c0
mov ebx, dword [esi + 0x10]
add esp, 4
mov ecx, esi
mov edi, eax
call fcn.1000f670
push dword [ebp + 0x10]
mov edx, ebx
push edi
push 0x100a0d04
push ecx
mov ecx, eax
call fcn.100520d0
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov esi, eax
push 0x100a0e00
call fcn.1000b5b0
mov byte [ebp - 4], 4
cmp esi, 0xffffffff
je 0x10050f6f
push 0xffffffffffffffff
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x60]
call fcn.1000af10
push eax
lea ecx, [ebp - 0x28]
call fcn.1000b450
lea ecx, [ebp - 0x48]
call fcn.1000b430
lea eax, [ebp - 0x28]
push 0x100a0e04
push eax
call fcn.10013fd0
add esp, 8
test al, al
jne 0x100513b6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x48], 0
je 0x10050f6f
push 0
push 0x100a0db4
lea ecx, [ebp - 0x28]
call fcn.10043aa0
push eax
push 0
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000af10
push eax
lea ecx, [ebp - 0x28]
call fcn.1000b450
lea ecx, [ebp - 0x1b8]
call fcn.1000b430
push 0x120
lea eax, [ebp - 0x180]
push 0
push eax
call fcn.10063ea0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov ax, word [ebp + 0x10]
mov word [ebp - 0x178], ax
mov dword [ebp - 0x174], ecx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050fa0
lea eax, [ebp - 0x28]
sub ecx, edx
push 0x100a0e08
push eax
mov word [ebp - 0x176], cx
call fcn.10013fd0
add esp, 8
test al, al
je 0x10050fd9
mov dword [ebp - 0xfc], str.text_htm
mov eax, 8
jmp 0x10051236
lea eax, [ebp - 0x28]
push str.html
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x10051002
mov dword [ebp - 0xfc], str.text_html__charsetUTF_8
mov eax, 0x18
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0e3c
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x1005102b
mov dword [ebp - 0xfc], str.text_javascript
mov eax, 0xf
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0e00
push eax
call fcn.10013fd0
add esp, 8
test al, al
jne 0x10051227
lea eax, [ebp - 0x28]
push 0x100a0e5c
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x1005106d
mov dword [ebp - 0xfc], str.text_css
mov eax, 8
jmp 0x10051236
lea eax, [ebp - 0x28]
push str.json
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x10051096
mov dword [ebp - 0xfc], str.application_json
mov eax, 0x10
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0e88
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x100510bf
mov dword [ebp - 0xfc], str.image_png
mov eax, 9
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0e98
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x100510e8
mov dword [ebp - 0xfc], str.image_jpg
mov eax, 9
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0ea8
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x10051111
mov dword [ebp - 0xfc], str.image_gif
mov eax, 9
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0eb8
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x1005113a
mov dword [ebp - 0xfc], str.audio_wav
mov eax, 9
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0ec8
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x10051163
mov dword [ebp - 0xfc], str.video_mp4
mov eax, 9
jmp 0x10051236
lea eax, [ebp - 0x28]
push str.woff
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x1005118c
mov dword [ebp - 0xfc], str.application_font_woff
mov eax, 0x15
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0ef8
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x100511b5
mov dword [ebp - 0xfc], str.application_font_ttf
mov eax, 0x14
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0f14
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x100511db
mov dword [ebp - 0xfc], str.application_vnd.ms_fontobject
mov eax, 0x1d
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0f38
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x10051201
mov dword [ebp - 0xfc], str.application_font_otf
mov eax, 0x14
jmp 0x10051236
lea eax, [ebp - 0x28]
push 0x100a0f54
push eax
call fcn.10013fd0
add esp, 8
test al, al
je 0x10051227
mov dword [ebp - 0xfc], str.application_image_svgxm
mov eax, 0x18
jmp 0x10051236
mov dword [ebp - 0xfc], str.text_plain
mov eax, 0xa
mov esi, dword [ebp - 0x10]
xor ecx, ecx
mov word [ebp - 0x100], ax
mov edx, 0xc
mov eax, dword [esi + 0x1d8]
add eax, 3
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10061c92
mov ecx, eax
add esp, 4
xor ebx, ebx
mov dword [ebp + 0x10], ecx
mov edi, 1
mov dword [ecx + 4], str.Access_Control_Allow_Origin
mov dword [ecx + 8], 0x100a0db0
mov dword [ecx], 0x1001b
mov dword [ecx + 0x10], str.Access_Control_Allow_Methods
mov dword [ecx + 0x14], str.GET__POST__PUT__OPTIONS
mov dword [ecx + 0xc], 0x17001c
mov dword [ecx + 0x1c], str.Access_Control_Allow_Headers
mov dword [ecx + 0x20], str.Origin__Accept__Content_Type__Access_Control_Allow_Headers__Authorization__X_Requested_With__X_CSRF_Token
mov dword [ecx + 0x18], 0x69001c
mov eax, dword [esi + 0x1d8]
movzx edx, ax
test eax, eax
jle 0x10051322
lea edi, [esi + 0x80]
lea esi, [ecx + 0x28]
mov ecx, edi
mov dword [esi], str.Set_Cookie
call fcn.1000b0a0
mov edx, dword [esi]
mov dword [esi + 4], eax
lea ecx, [edx + 1]
mov dword [ebp + 0x18], ecx
nop word [eax + eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x100512e0
sub edx, dword [ebp + 0x18]
mov word [esi - 4], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100512f1
sub eax, edx
inc ebx
mov word [esi - 2], ax
add edi, 0x18
mov eax, dword [ebp - 0x10]
add esi, 0xc
mov eax, dword [eax + 0x1d8]
movzx ecx, ax
cmp ebx, eax
jl 0x100512c2
mov esi, dword [ebp - 0x10]
mov edx, ecx
mov ecx, dword [ebp + 0x10]
mov edi, 1
lea eax, [edx + 3]
mov dword [ebp - 0x16c], ecx
mov word [ebp - 0x170], ax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1d8], 0
test eax, eax
je 0x1005137c
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x198], eax
cmp ecx, 0xffffffff
jne 0x10051369
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10051360
sub ecx, edx
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x194], ecx
mov word [ebp - 0x70], di
mov dword [ebp - 0x6c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x180]
push eax
mov eax, dword [ebp + 0xc]
push 0
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [ebp + 8]
call dword [sym.imp.HTTPAPI.dll_HttpSendHttpResponse]
push dword [ebp + 0x10]
mov esi, eax
call fcn.10061814
add esp, 4
test esi, esi
je 0x100513ba
xor bl, bl
jmp 0x100513bc
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.1000b430
lea ecx, [ebp - 0x60]
call fcn.1000b430
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18