Function at 0x10070460
Capabilities:
Check http status code
Connect to http server
Create http request
Delete file
Download and write a file
Query remote server for available data
Read and send data from client to server
Read data from internet
Read file on windows
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
mov eax, 0x2940
call fcn.10090560
mov eax, dword [0x100cc8ec]
xor eax, esp
mov dword [esp + 0x293c], eax
mov eax, dword [esp + 0x2944]
mov edx, dword [esp + 0x2954]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x295c]
mov esi, ecx
mov ecx, dword [esp + 0x2958]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__Start
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
call fcn.100772b0
xor ebx, ebx
push 0x270f
lea ecx, [esp + 0x249]
push ebx
push ecx
mov byte [esp + 0x250], bl
call sub.MSVCR80.dll_memset
push 0x103
lea edx, [esp + 0x151]
push ebx
push edx
mov byte [esp + 0x158], bl
call sub.MSVCR80.dll_memset
push 0x103
lea eax, [esp + 0x59]
push ebx
push eax
mov byte [esp + 0x60], bl
call sub.MSVCR80.dll_memset
add esp, 0x2c
push ebx
push ebx
push ebx
push ebx
push str.HTTP
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebp, eax
cmp ebp, ebx
jne 0x1007055a
mov ecx, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__InternetOpen.._Fail
push ecx
call fcn.100772b0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add esp, 8
push 0x98bd9c
call eax
mov eax, 0x98bd9c
jmp 0x1007098b
mov ecx, dword [esp + 0x2960]
mov edx, dword [esp + 0x10]
push ebx
push ebx
push 3
push ebx
push ebx
push ecx
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x1007058d
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__InternetConnect.._Fail
push eax
jmp 0x10070539
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x100705ac
push 0x103
push eax
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x100705b1
sub eax, edx
push eax
lea edx, [esp + 0x13c]
push edi
push edx
call dword [sym.imp.MSVCR80.dll_strncat]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push 0x4000000
push ebx
push ebx
push str.HTTP_1.1
lea eax, [esp + 0x14c]
push eax
push 0x100a4614
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x1007062c
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__HttpOpenRequest.._Fail
push edx
call fcn.100772b0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
add esp, 8
push 0x98bd94
call edx
mov eax, 0x98bd94
jmp 0x1007098b
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x1007066b
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__HttpSendRequest.._Fail
push eax
call fcn.100772b0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add esp, 8
push 0x98bd94
call eax
mov eax, 0x98bd94
jmp 0x1007098b
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x1007069b
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__HttpQueryInfo.._Fail
push ecx
jmp 0x1007064a
cmp dword [esp + 0x18], 0xc8
je 0x100706da
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
push ecx
push str._CORE__XWHSMDriverManager::fileDownLoad_http__Connect_Internet.._Fail:HTTP_Status__d_
push edx
call fcn.100772b0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
add esp, 0xc
push 0x98bd94
call edx
mov eax, 0x98bd94
jmp 0x1007098b
push 0x103
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.1006ffd0
push 1
lea ecx, [esp + 0x38]
push 0x100a179c
push ecx
call dword [sym.imp.MSVCR80.dll_strncat]
mov eax, edi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10070705
sub eax, edx
push eax
lea edx, [esp + 0x38]
push edi
push edx
call dword [sym.imp.MSVCR80.dll_strncat]
mov ecx, dword [esi]
lea eax, [esp + 0x40]
push eax
push str._CORE__XWHSMDriverManager::fileDownLoad_http__CreateFile..___s_
push ecx
call fcn.100772b0
add esp, 0x18
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, ebx
jne 0x10070782
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__CreateFile.._Fail
push eax
call fcn.100772b0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add esp, 8
push 0x98bd9d
call eax
mov eax, 0x98bd9d
jmp 0x1007098b
mov edx, dword [esp + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x244]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100707d7
push ebx
lea ecx, [esp + 0x30]
push ecx
push eax
lea edx, [esp + 0x248]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x10070782
push eax
mov eax, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__File_download_dwRead__d
push eax
call fcn.100772b0
add esp, 0xc
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10070834
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__SetFilePointer_failed
push edx
call fcn.100772b0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
add esp, 8
push 0x98bd95
call edx
jmp 0x10070986
push ebx
lea eax, [esp + 0x2c]
push eax
push 0x400
lea ecx, [esp + 0x248]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10070878
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__ReadFile_failed
push eax
jmp 0x1007096f
lea ecx, [esp + 0x23c]
push str.HTTP_Status_404
push ecx
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
test eax, eax
je 0x100708b8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__HTTP_Status_404_error..
push eax
jmp 0x1007096f
cmp byte [esp + 0x23c], 0x30
je 0x100708f8
movsx ecx, byte [esp + 0x23d]
cmp ecx, 0x82
je 0x100708f8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__Hex_value_of_hsm.der_is_not_started_3082..
push eax
jmp 0x1007096f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [esp + 0x14], ebx
jne 0x10070967
lea ecx, [esp + 0x34]
push ebx
push ecx
call dword [sym.imp.MSVCR80.dll__access]
mov edi, dword [esp + 0x28]
add esp, 8
test eax, eax
jne 0x1007094f
cmp edi, ebx
je 0x1007094f
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10070930
sub eax, edx
push eax
lea edx, [esp + 0x38]
push edx
push edi
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
xor eax, eax
jmp 0x1007098b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi]
push edi
push str._CORE__XWHSMDriverManager::fileDownLoad_http__access_Fail___filePath_:__s__getLastError_:__d
push eax
call fcn.100772b0
add esp, 0x10
mov ecx, dword [esi]
push str._CORE__XWHSMDriverManager::fileDownLoad_http__End___HSM_file_download_failed
push ecx
call fcn.100772b0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add esp, 8
push 0x98bd95
call eax
mov eax, 0x98bd95
mov ecx, dword [esp + 0x294c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10090524
add esp, 0x2940
ret 0x14