Function at 0x100021d0
Capabilities:
Create http request
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009038c
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x100ba00c]
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
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002210
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jae 0x10002465
test ebx, ebx
je 0x10002465
push dword [0x100bcf6c]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
push str.HTTP:__
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100022d7
cmp dword [ebp + 0xc], 2
je 0x1000246c
push 0
push 0
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x434], 0
lea eax, [ebp - 0x42c]
movq qword [ebp - 0x42c], xmm0
push 0x100a859c
mov dword [ebp - 0x430], eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
je 0x100022ab
push 0
push 0x20000000
push 0
push 0
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
test eax, eax
jne 0x100022bb
lea ecx, [ebp - 0x434]
call fcn.10002d70
jmp 0x1000246c
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x434]
call fcn.10002d70
mov eax, 1
jmp 0x1000246e
cmp word [0x100bd4b8], 0
jne 0x10002317
push 0x100bd4b8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x100bd4b8
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002300
sub ecx, edx
sar ecx, 1
mov dword [0x100bd4b4], ecx
jmp 0x1000231d
mov ecx, dword [0x100bd4b4]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x434], 0
lea eax, [ebp - 0x42c]
movq qword [ebp - 0x42c], xmm0
push 0x100bd4b8
push ebx
mov dword [ebp - 0x430], eax
call esi
add esp, 0xc
lea ecx, [ebp - 0x434]
test eax, eax
je 0x100022c8
call fcn.10002d70
cmp dword [edi + 0x10], 0
je 0x10002460
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.HncFoundation.dll_int___stdcall_HncLoadStringWToWSTR_Deprecate_struct_HINSTANCE_____char_const___unsigned_short_int___int_]
lea eax, [ebp - 0x420]
add esp, 0xc
push 0x104
push eax
push str.IDS_FILECHECK_WARNING_MSG
push dword [0x100bbd24]
call esi
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.AFX_IDS_APP_TITLE
push dword [0x100bbd24]
call esi
lea ecx, [ebp - 0x424]
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_void_]
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push ebx
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.HncFoundation.dll_public:_int___cdecl_CHncStringW::Format_unsigned_short_int_const__]
mov edx, dword [ebp - 0x424]
add esp, 0x10
xor ecx, ecx
push 0x36
push 0
call fcn.1008e740
add eax, 0xfffffffe
cmp eax, 6
ja case.0x10002416.3
jmp dword [eax*4 + 0x1000248c]
mov dword [edi + 0x14], 1
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x424]
mov esi, 1
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
mov eax, esi
jmp 0x1000246e
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x424]
xor esi, esi
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
mov eax, esi
jmp 0x1000246e
mov eax, dword [edi + 0x14]
jmp 0x1000246e
mov dword [edi + 0x14], 0
xor eax, eax
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.1008cdc9
mov esp, ebp
pop ebp
ret 8