Function at 0x1012703
Capabilities:
Start http server

Disassembly:
mov eax, 0x10961d2
call fcn.01077478
sub esp, 0x98
mov eax, dword [0x10a6184]
push ebx
push esi
push edi
mov edi, 0x10a6184
cmp eax, edi
je 0x101273f
test byte [eax + 0x1c], 1
je 0x101273f
push 0x10022b4
push 0x8e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
xor esi, esi
mov dword [ebp - 0x24], 0x100231c
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], esi
call fcn.01011719
push 0x10a8b2c
lea ecx, [ebp - 0x18]
call fcn.01020db5
lea eax, [ebp - 0x10]
push eax
push 0x1002994
mov byte [ebp - 4], 2
mov word [ebp - 0x1c], 1
mov word [ebp - 0x1a], si
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
mov ecx, dword [0x10a6184]
mov esi, eax
mov dword [ebp - 0x14], esi
neg esi
sbb esi, esi
mov ebx, 0xfffffac8
and esi, ebx
add esi, 0x538
cmp ecx, edi
je 0x10127dc
test byte [ecx + 0x1c], 2
je 0x10127dc
movzx eax, byte [ecx + 0x19]
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp eax, edx
jl 0x10127dc
push dword [ebp - 0x14]
push esi
push 0x10022b4
push 0x8f
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100ef6e
mov ecx, dword [0x10a6184]
test esi, esi
jne 0x1012996
push esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0xa4]
call fcn.01012551
push 3
push 0xf003f
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.010119cc
movzx esi, al
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
call fcn.01010e04
mov eax, dword [0x10a6184]
neg esi
sbb esi, esi
and esi, ebx
mov ebx, 0x538
add esi, ebx
cmp eax, edi
je 0x1012865
test byte [eax + 0x1c], 2
je 0x1012865
movzx ecx, byte [eax + 0x19]
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x1012865
push dword [ebp - 0x14]
push esi
push 0x10022b4
push 0x90
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ef6e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0x10], 0
test esi, esi
jne 0x1012990
push esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.0100fc20
push 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.01011c08
test al, al
jne 0x101289b
mov esi, ebx
mov ecx, dword [0x10a6184]
cmp ecx, edi
je 0x10128db
test byte [ecx + 0x1c], 2
je 0x10128db
movzx eax, byte [ecx + 0x19]
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp eax, edx
jl 0x10128db
push esi
push 0x10022b4
push 0x91
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01009b3f
mov ecx, dword [0x10a6184]
xor ebx, ebx
cmp esi, ebx
jne 0x1012996
push ebx
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.HTTPAPI.dll_HttpInitialize]
mov ecx, dword [0x10a6184]
cmp ecx, edi
mov esi, eax
je 0x1012933
test byte [ecx + 0x1c], 2
je 0x1012933
movzx eax, byte [ecx + 0x19]
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp eax, edx
jl 0x1012933
push esi
push 0x10022b4
push 0x92
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01009b3f
mov ecx, dword [0x10a6184]
cmp esi, ebx
jne 0x1012996
push ebx
lea ecx, [ebp - 0x18]
call fcn.0100a53f
push eax
push 0x1002968
call fcn.0100f578
push ebx
push 2
call dword [sym.imp.HTTPAPI.dll_HttpTerminate]
mov ecx, dword [0x10a6184]
cmp ecx, edi
mov esi, eax
je 0x10129ca
test byte [ecx + 0x1c], 2
je 0x1012996
movzx eax, byte [ecx + 0x19]
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp eax, edx
jl 0x1012996
push esi
push 0x10022b4
push 0x93
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01009b3f
mov ecx, dword [0x10a6184]
cmp ecx, edi
je 0x10129ca
test byte [ecx + 0x1c], 1
je 0x10129ca
movzx eax, byte [ecx + 0x19]
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp eax, edx
jl 0x10129ca
push esi
push 0x10022b4
push 0x94
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01009b3f
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.01009cd1
lea ecx, [ebp - 0x44]
call fcn.01011bd9
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x100231c
call fcn.0100ee3e
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret