Function at 0x404ba0
Capabilities:
Send http response

Disassembly:
push 0xffffffffffffffff
push 0x4da93c
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x54d158]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x54d158]
xor eax, esp
push eax
lea eax, [esp + 0x26c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x27c]
mov edi, dword [esp + 0x284]
xor ebx, ebx
push 0x118
mov esi, edx
lea edx, [esp + 0x118]
push ebx
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x44], ebx
call fcn.004b0770
mov ax, word [esp + 0x28c]
mov word [esp + 0x128], ax
mov eax, esi
mov dword [esp + 0x12c], esi
add esp, 0xc
lea esi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404c30
sub eax, esi
mov word [esp + 0x11e], ax
mov eax, str.Access_Control_Allow_Origin
mov ebp, 9
mov dword [esp + 0x198], str.text_html
mov word [esp + 0x194], bp
mov dword [esp + 0x60], eax
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404c67
sub eax, edx
mov word [esp + 0x5c], ax
mov eax, 0x51cd48
mov dword [esp + 0x64], eax
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404c83
sub eax, esi
mov word [esp + 0x5e], ax
mov eax, 1
xor esi, esi
mov word [esp + 0x124], ax
mov word [esp + 0x224], ax
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x6c]
mov eax, 0xf
mov word [esp + 0x12c], si
mov dword [esp + 0x130], esi
mov dword [esp + 0x128], ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x228], edx
mov dword [esp + 0x260], eax
mov dword [esp + 0x25c], esi
mov byte [esp + 0x24c], bl
mov dword [esp + 0x274], esi
mov dword [esp + 0x244], eax
mov dword [esp + 0x240], esi
mov byte [esp + 0x230], 0
push 0xffffffffffffffff
push 0x51cd44
lea ecx, [esp + 0x30]
mov byte [esp + 0x27c], 1
call fcn.004748c0
cmp edi, esi
mov byte [esp + 0x274], 2
je 0x404de4
push 0xffffffffffffffff
push esi
push edi
lea ecx, [esp + 0x254]
call fcn.0040f4d0
lea ecx, [esp + 0x18]
call fcn.00474bb0
mov bl, 3
mov byte [esp + 0x274], bl
cmp dword [esp + 0x260], 0x10
mov eax, dword [esp + 0x24c]
jae 0x404d6c
lea eax, [esp + 0x24c]
push 0xfde9
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x24]
call fcn.00473f20
mov eax, dword [esp + 0x18]
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x38]
call fcn.00475920
mov byte [esp + 0x274], 4
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404da0
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x250]
call fcn.0040fc60
lea ecx, [esp + 0x2c]
mov byte [esp + 0x274], bl
call fcn.004732d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 2
call fcn.004732d0
xor ebp, ebp
lea edi, [ebp + 0xf]
jmp 0x40509f
lea ecx, [esp + 0x18]
call fcn.00474bb0
lea ecx, [esp + 0x30]
mov byte [esp + 0x274], 5
call fcn.00474bb0
mov byte [esp + 0x274], 6
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x30]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x28]
call fcn.00475900
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x278], 7
call fcn.00475500
lea ecx, [esp + 0x20]
mov byte [esp + 0x274], 6
call fcn.004732d0
mov ecx, dword [esp + 0x30]
push 0xfde9
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x24]
call fcn.00473f20
push esi
push 0x3f
lea ecx, [esp + 0x20]
call fcn.004734b0
mov esi, eax
push esi
push str.callback
lea ecx, [esp + 0x20]
call fcn.004734f0
mov edi, eax
cmp edi, esi
jle 0x404f20
push edi
push 0x26
lea ecx, [esp + 0x20]
call fcn.004734b0
mov esi, eax
lea eax, [edi + 9]
cmp esi, eax
jle 0x404eb6
mov edx, esi
sub edx, edi
sub edx, ebp
push edx
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
call fcn.004741d0
mov byte [esp + 0x274], 8
mov ebx, 1
jmp 0x404ed2
push 0xffffffffffffffff
push 0x51cd44
lea ecx, [esp + 0x28]
call fcn.004748c0
mov dword [esp + 0x274], ebp
mov ebx, 2
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
call fcn.00474c20
test bl, 2
mov dword [esp + 0x274], 8
je 0x404f00
and ebx, 0xfffffffd
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
call fcn.004732d0
test bl, 1
mov dword [esp + 0x274], 6
je 0x404f20
and ebx, 0xfffffffe
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ebx
call fcn.004732d0
cmp esi, 0xa
jle 0x404f44
add esi, 1
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401040
mov byte [esp + 0x274], 0xa
or ebx, 4
jmp 0x404f62
push 0xffffffffffffffff
push 0x51cd44
lea ecx, [esp + 0x3c]
call fcn.004748c0
mov dword [esp + 0x274], 0xb
or ebx, 8
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
call fcn.00410140
test bl, 8
mov dword [esp + 0x274], 0xd
je 0x404f92
and ebx, 0xfffffff7
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], ebx
call fcn.004732d0
test bl, 4
mov byte [esp + 0x274], 0xe
je 0x404fa8
lea ecx, [esp + 0x20]
call fcn.004732d0
mov esi, dword [esp + 0x2c]
mov eax, dword [esi - 0xc]
cmp eax, 0x1e
jle 0x405050
lea edx, [esp + 0x94]
mov dword [esp + 0x90], edx
call dword [0x54e304]
push eax
push esi
lea eax, [esp + 0x98]
call fcn.0040e6c0
mov byte [esp + 0x274], 0xf
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x44]
call fcn.0040fbf0
push 0xffffffffffffffff
xor ebp, ebp
push ebp
push eax
lea ecx, [esp + 0x254]
mov byte [esp + 0x280], 0x10
call fcn.0040f4d0
cmp dword [esp + 0x58], 0x10
jb 0x405021
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004a08dc
add esp, 4
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x94]
cmp eax, edx
mov edi, 0xf
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
je 0x405055
push eax
call fcn.004ad032
add esp, 4
jmp 0x405055
xor ebp, ebp
lea edi, [ebp + 0xf]
mov byte [esp + 0x274], 6
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40507d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x274], 5
call fcn.004732d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 2
call fcn.004732d0
lea ecx, [esp + 0x248]
push ecx
lea ecx, [esp + 0x230]
call fcn.00405760
add esp, 4
cmp eax, 0xffffffff
jle 0x405206
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x40519b
mov eax, dword [eax - 0xc]
shr eax, 1
cmp eax, ebp
jle 0x40519b
push 2
lea eax, [esp + 0x230]
call fcn.0040e3e0
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x94]
mov dword [esp + 0x90], edx
call dword [0x54e304]
push eax
push esi
lea eax, [esp + 0x98]
call fcn.0040e6c0
mov byte [esp + 0x274], 0x11
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x44]
call fcn.0040fbf0
push ebp
push eax
or eax, 0xffffffff
lea esi, [esp + 0x234]
mov byte [esp + 0x27c], 0x12
call fcn.0040e280
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x405156
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004a08dc
add esp, 4
mov byte [esp + 0x274], 2
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x94]
cmp eax, edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
je 0x405186
push eax
call fcn.004ad032
add esp, 4
push 2
push 0x51c544
lea eax, [esp + 0x234]
call fcn.0040e190
jmp 0x4051a0
mov esi, 0x10
mov ecx, dword [esp + 0x240]
mov eax, 1
cmp eax, ecx
sbb eax, eax
and eax, ecx
push eax
push ebp
mov dword [esp + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [esp + 0x240]
mov ebx, eax
mov eax, dword [esp + 0x78]
cmp edx, eax
mov ecx, eax
jae 0x4051dd
mov ecx, edx
cmp dword [esp + 0x244], esi
mov edx, dword [esp + 0x230]
jae 0x4051f4
lea edx, [esp + 0x230]
push ecx
push edx
push eax
push ebx
call fcn.004adae6
add esp, 0x10
mov dword [esp + 0x74], ebx
jmp 0x405217
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov esi, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x274], 1
call fcn.004732d0
cmp dword [esp + 0x244], esi
jb 0x405241
mov ecx, dword [esp + 0x230]
push ecx
call fcn.004a08dc
add esp, 4
mov dword [esp + 0x274], 0xffffffff
cmp dword [esp + 0x260], esi
mov dword [esp + 0x244], edi
mov dword [esp + 0x240], ebp
mov byte [esp + 0x230], 0
jb 0x40527b
mov edx, dword [esp + 0x24c]
push edx
call fcn.004a08dc
add esp, 4
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push ebp
lea ecx, [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0x58]
push ebp
push edx
push eax
push ecx
mov dword [esp + 0x28c], edi
mov dword [esp + 0x288], ebp
mov byte [esp + 0x278], 0
call dword [sym.imp.HTTPAPI.dll_HttpSendHttpResponse]
mov edi, eax
cmp edi, ebp
je 0x40535a
call fcn.004a08e6
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x4052df
push 0x80004005
call fcn.004103e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push edi
lea ecx, [esp + 0x28]
push str.HttpSendHttpResponse_failed___d__n
push ecx
mov dword [esp + 0x280], 0x13
call fcn.00410070
mov esi, dword [esp + 0x30]
add esp, 0xc
add esi, 0xfffffff0
push esi
call fcn.0040ff10
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405336
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x274], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40535a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
cmp ebx, ebp
je 0x40536d
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov ecx, dword [esp + 0x26c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.004ac89d
add esp, 0x264
ret