Function at 0x4031d0
Capabilities:
Create thread
Register http server url
Start http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430b8b
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x443230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x15c]
push 0
push eax
mov dword [ebp - 0x1a0], 1
mov dword [ebp - 0x48], 0x32
mov dword [ebp - 0x160], 0
mov dword [ebp - method.CertStore.virtual_0], vtable.CertStore.0
call fcn.0041ce40
push 0x104
lea eax, [ebp - 0x15c]
push 0x439760
push eax
call fcn.0041bcba
add esp, 0x18
push 0
push 0
push 1
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x447328], eax
test eax, eax
je 0x403290
push 0x447324
push 0
push 0
push 0x407c50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x447320], eax
test eax, eax
jne 0x4032ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4032ba
push esi
push esi
push str.SessionManager_init_error__d__0x_X_
push 0x3c8
push 0x438f20
call fcn.00405530
add esp, 0x14
jmp 0x403516
push 0
push 3
push dword [ebp - 0x1a0]
call dword [sym.imp.HTTPAPI.dll_HttpInitialize]
mov esi, eax
test esi, esi
je 0x4032ee
push esi
push esi
push str.HttpInitialize_error__d__0x_X_
push 0x3d4
push 0x438f8c
call fcn.00405530
add esp, 0x14
jmp 0x403516
lea eax, [edi + 0x54]
push 0
push eax
mov dword [ebp - 0x1a0], eax
call dword [sym.imp.HTTPAPI.dll_HttpCreateHttpHandle]
mov esi, eax
test esi, esi
je 0x403324
push esi
push esi
push str.HttpCreateHttpHandle_error__d__0x_X_
push 0x3df
push 0x439008
call fcn.00405530
add esp, 0x14
jmp 0x403516
xorps xmm0, xmm0
push str.127.0.0.1
movq qword [ebp - 0x58], xmm0
movq qword [ebp - 0x50], xmm0
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x54], eax
mov eax, 2
push 0x9b29
mov word [ebp - 0x58], ax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [ebp - 0x164]
mov word [ebp - 0x56], ax
call fcn.00403cd0
mov esi, eax
test esi, esi
je 0x403386
push esi
push esi
push str.Cert_store_open_error__d__0x_X_
push 0x3f1
push 0x4390b0
call fcn.00405530
add esp, 0x14
jmp 0x403516
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push ecx
lea ecx, [ebp - 0x164]
call fcn.00403d80
mov esi, eax
test esi, esi
je 0x4033be
push esi
push esi
push str.get_cert_hash_error__d__0x_X_
push 0x3fa
push 0x439120
call fcn.00405530
add esp, 0x14
jmp 0x403516
lea ecx, [ebp - 0x164]
call fcn.00403d60
movq xmm0, qword [0x439570]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x198], eax
lea eax, [ebp - 0x44]
movq qword [ebp - 0x190], xmm0
movq xmm0, qword [0x439578]
mov dword [ebp - 0x194], eax
mov eax, 8
movq qword [ebp - 0x188], xmm0
call fcn.0041f8f0
mov eax, esp
push 3
push 3
push 0x439754
push eax
call fcn.00402d20
push 0
push 0x38
mov dword [ebp - 0x180], eax
lea eax, [ebp - 0x19c]
push eax
push 1
push 0
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
call dword [sym.imp.HTTPAPI.dll_HttpSetServiceConfiguration]
mov esi, eax
test esi, esi
je 0x40349f
cmp esi, 0xb7
je 0x40349f
push esi
push esi
push str.HttpSetServiceConfiguration_error__d__0x_X_
push 0x431
push 0x4391e0
call fcn.00405530
add esp, 0x14
jmp 0x403516
xor edi, edi
cmp dword [str.https:__127.0.0.1:39721_], edi
je 0x403514
mov eax, 0x4441a0
mov edi, edi
mov esi, dword [eax]
test esi, esi
jne 0x4034ba
xor eax, eax
jmp 0x4034ec
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4034c0
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jle 0x4034d8
xor eax, eax
jmp 0x4034ec
lea eax, [ebx + ebx]
call fcn.0041daa0
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.00402d20
push 0
push eax
mov eax, dword [ebp - 0x1a0]
push dword [eax]
call dword [sym.imp.HTTPAPI.dll_HttpAddUrl]
mov esi, eax
test esi, esi
jne 0x403557
inc edi
cmp dword [edi*4 + 0x4441a0], esi
lea eax, [edi*4 + 0x4441a0]
jne 0x4034b0
xor esi, esi
mov eax, dword [ebp - 0x160]
mov dword [ebp - method.CertStore.virtual_0], vtable.CertStore.0
test eax, eax
je 0x403533
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, esi
lea esp, [ebp - 0x1b0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419355
mov esp, ebp
pop ebp
ret
push edi
push esi
push esi
push str.HttpAddUrl_error__d__0x_X___d_
push 0x440
push 0x439248
call fcn.00405530
add esp, 0x18
jmp 0x403516