Function at 0x10038880
Capabilities:
Check http status code
Connect to http server
Create http request
Print debug messages
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10090f48
push 0x1005aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x1009cbc0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x168], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x144], ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x174], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x198], str.application_json
mov dword [ebp - 0x194], 0
xor eax, eax
mov word [ebp - 0x54], ax
push 0x30
push eax
lea eax, [ebp - 0x52]
push eax
call fcn.10055aa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x88], ax
push 0x30
push eax
lea eax, [ebp - 0x86]
push eax
call fcn.10055aa0
add esp, 0xc
mov eax, dword [edi]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x13c], str.OS_VERSION
mov eax, dword [str.Unknown]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], str.WL_VERSION
lea eax, [ebp - 0x88]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], str.VERSION
lea eax, [ebp - 0x54]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], str.PACKAGE
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x190], 4
mov dword [ebp - 0x148], 0
mov edi, 0x20000
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
xor eax, eax
mov word [ebp - 0xd4], ax
push 0x42
push eax
lea eax, [ebp - 0xd2]
push eax
call fcn.10055aa0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x11c], ax
push 0x42
push eax
lea eax, [ebp - 0x11a]
push eax
call fcn.10055aa0
add esp, 0xc
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x168]
mov byte [eax], 0
push esi
push 0x100e1fb0
push str._s_s.new
push 0x104
mov ebx, dword [ebp - 0x158]
push ebx
call fcn.1005211a
add esp, 0x14
push 0
push ebx
call fcn.1005292e
add esp, 8
test eax, eax
jne 0x10038aa3
mov eax, dword [ebp - 0x168]
mov byte [eax], 1
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
xor eax, eax
jmp 0x10039949
mov bl, byte [ebp - 0x13d]
cmp bl, 1
ja 0x10038abb
mov bh, byte [ebp - 0x13e]
jne 0x10038add
cmp bh, 0xd
jbe 0x10038add
mov bl, 1
mov word [ebp - 0x13e], 0x10d
mov bh, 0xd
mov byte [ebp - 0x13f], 0
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x164]
mov dword [ecx], eax
push 0x249
push 0xd
push 1
push str._d._d._d
push 0x19
lea eax, [ebp - 0x54]
push eax
call fcn.1005211a
movzx eax, byte [ebp - 0x13f]
push eax
movzx eax, bh
push eax
movzx eax, bl
push eax
push str._d._d._d
push 0x19
lea eax, [ebp - 0x88]
push eax
call fcn.1005211a
push 0x4000a
call fcn.1005218a
add esp, 0x34
mov ebx, eax
mov dword [ebp - 0x150], ebx
test ebx, ebx
jne 0x10038bdd
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10038b63
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10038bc0
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x10038b9f
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0x83
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038bb7
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, 5
jmp 0x10039949
push 0x40000
push 0
push ebx
call fcn.10055aa0
add esp, 0xc
push ebx
push ecx
lea edx, [ebp - 0x13c]
mov ecx, str.______t_t_product__:__mbae________t_t_build__:__consumer________t_t_semver__:__VERSION________t_t_os_version__:__OS_VERSION____t_t_t_installation_token__:___ph_F21R9uEhpUbfACXK________t_t_installed_packages__:__t_t_t__name__:_PACKAGE__semver__:__WL_VERSION___channel__:__dev___
call fcn.10039970
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x10038caf
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10038c39
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10038c95
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push ebx
test eax, eax
jle 0x10038c74
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0x88
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038c8c
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, ebx
jmp 0x10039949
push 0
push 0
push 0
push 0
push 0x1008ca44
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x170], eax
test eax, eax
jne 0x10038d83
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10038d0c
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10038d68
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10038d47
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0x8c
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038d5f
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [ebx + 0x1e]
jmp 0x10039949
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push str.sirius.mwbsys.com
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x174], eax
test eax, eax
jne 0x10038e10
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10038cf2
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10038d47
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0x96
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038d5f
push 0
push 0x800000
lea ecx, [ebp - 0x198]
push ecx
push 0
push 0
push str._api_v1_updates_manifest.json
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebx, eax
mov dword [ebp - 0x184], ebx
test ebx, ebx
jne 0x10038ea7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10038cf2
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10038d47
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0x9b
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038d5f
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_json_r_n
push ebx
mov esi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
call esi
test eax, eax
jne 0x10038f28
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10038cf2
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10038d47
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0x9e
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038d5f
push 0x20000000
push 0xffffffffffffffff
push str.Authorization:Token_tokenuNzT6trNV53Ser7GPhX6_r_n
push ebx
call esi
test eax, eax
jne 0x10038fa3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10038cf2
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10038d47
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0xa5
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038d5f
mov ecx, dword [ebp - 0x150]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10038fb0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
mov dword [ebp - 0x148], esi
lea eax, [esi*2 + 0xa]
push eax
call fcn.1005218a
add esp, 4
mov dword [ebp - 0x154], eax
test eax, eax
je 0x10038bc0
push 0xffffffffffffffff
push dword [ebp - 0x150]
push esi
push eax
lea eax, [ebp - 0x180]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x100390ad
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
jne 0x10039037
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x10039093
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10039072
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0xb0
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003908a
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.10052152
add esp, 4
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
mov eax, edi
jmp 0x10039949
mov eax, dword [ebp - 0x148]
add eax, eax
push eax
mov esi, dword [ebp - 0x154]
push esi
call fcn.10053a0a
add esp, 8
push eax
push esi
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1003913e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10038cf2
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10038d47
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0xb3
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038d5f
push 0
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x188]
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x100391c6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
call esi
lea edi, [eax + 0x1e]
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10038cf2
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push edi
test eax, eax
jle 0x10038d47
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0xb6
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038d5f
push 0x2000a
call fcn.1005218a
add esp, 4
mov dword [ebp - 0x160], eax
mov esi, eax
mov dword [ebp - 0x18c], esi
test eax, eax
jne 0x1003923f
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10038b49
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x10038b9f
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0xba
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038bb7
push 0x20000
push 0
push eax
call fcn.10055aa0
add esp, 0xc
push 0x4000a
call fcn.1005218a
add esp, 4
mov dword [ebp - 0x15c], eax
test eax, eax
jne 0x100392c0
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10038b49
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x10038b9f
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0xbf
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038bb7
push 0x40000
push 0
push eax
call fcn.10055aa0
add esp, 0xc
push 0
push 0
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x1003939a
cmp dword [ebp - 0x148], 0
jbe 0x1003939a
lea eax, [ebp - 0x148]
push eax
lea eax, [edi - 1]
push eax
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1003939a
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x1003939a
sub edi, eax
mov dword [ebp - 0x19c], edi
add esi, eax
mov dword [ebp - 0x18c], esi
cmp edi, 0x64
jae 0x1003938b
push 0x1000a
call fcn.1005218a
add esp, 4
mov esi, eax
test esi, esi
je 0x10038b49
push 0x100865c0
push 0xffff
push esi
call fcn.10052136
add esp, 0xc
push 5
test eax, eax
jle 0x10038b9f
mov byte [esi + 0xffff], 0
push esi
push str.GetSiriusFileUpdate
push 1
mov edx, 0xca
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x10038bb7
mov dword [ebp - 0x148], 0
jmp 0x100392d0
push 0xffffffffffffffff
push dword [ebp - 0x160]
push 0x20000
mov esi, dword [ebp - 0x15c]
push esi
lea eax, [ebp - 0x180]
push eax
call fcn.1005410f
add esp, 0x14
cmp dword [ebp - 0x188], 0xc8
jne 0x10039624
mov edx, dword [ebp - 0x144]
mov ecx, esi
call fcn.10039a60
mov edx, eax
test edx, edx
je 0x10039624
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100393f0
sub ecx, esi
sar ecx, 1
lea eax, [edx + ecx*2]
mov dword [ebp - 0x144], eax
mov ecx, 0x22
mov word [eax], cx
mov edx, str._semver_:
mov ecx, eax
call fcn.10039a60
mov edi, eax
test edi, edi
je 0x10039624
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x17c]
push eax
push str._d._d._d
push edi
call fcn.10054b1e
add esp, 0x14
movzx eax, byte [ebp - 0x17c]
mov byte [ebp - 0x13d], al
movzx eax, byte [ebp - 0x178]
mov byte [ebp - 0x13e], al
movzx eax, byte [ebp - 0x16c]
mov byte [ebp - 0x13f], al
mov esi, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x164]
cmp esi, dword [ecx]
jbe 0x10038a89
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10039490
sub ecx, edx
sar ecx, 1
mov eax, 0x22
mov word [edi + ecx*2], ax
mov edx, str._url_:
mov ecx, dword [ebp - 0x144]
call fcn.10039a60
mov edi, eax
test edi, edi
je 0x10039624
push 1
mov edx, dword [ebp - 0x158]
mov ecx, edi
call fcn.1003a8f0
add esp, 4
mov dword [ebp - 0x14c], eax
mov edx, edi
lea ecx, [edx + 2]
mov dword [ebp - 0x140], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x100394e5
sub edx, dword [ebp - 0x140]
sar edx, 1
lea ecx, [edi + edx*2]
mov dword [ebp - 0x140], ecx
mov edx, 0x22
mov word [ecx], dx
test eax, eax
je 0x10039647
test al, 5
je 0x10039624
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax + 0x1e]
mov dword [ebp - 0x144], 0
push 0x1000a
call fcn.1005218a
add esp, 4
mov edi, eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov esi, eax
test edi, edi
je 0x100395f2
test esi, esi
je 0x100395f2
push dword [ebp - 0x158]
push dword [ebp - 0x140]
push str.DownloadFile:__s____s
push 0xffff
push esi
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x100395dd
xor eax, eax
mov word [esi + 0x1fffe], ax
push 0xffffffffffffffff
push esi
mov ecx, esi
call fcn.10001b80
inc eax
push eax
push edi
lea eax, [ebp - 0x144]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x100395bc
push ebx
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
push edi
push str.GetSiriusFileUpdate
push dword [ebp - 0x14c]
mov edx, 0xfa
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x1003960a
push ebx
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x10039604
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, edi
je 0x10039617
push edi
call fcn.10052152
add esp, 4
test esi, esi
je 0x10039624
push esi
call fcn.10052152
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x1009cbc0
call fcn.10062b20
add esp, 0xc
lea eax, [esi + 0x1e]
jmp 0x10039949
mov edx, str._md5_:
mov ecx, dword [ebp - 0x144]
call fcn.10039a60
mov edi, eax
test edi, edi
je 0x10039624
push edi
push 0x22
lea eax, [ebp - 0xd4]
push eax
call fcn.10053320
add esp, 0xc
lea edx, [ebp - 0x11c]
mov ecx, dword [ebp - 0x158]
call fcn.100070e0
mov dword [ebp - 0x144], eax
mov edx, edi
lea ecx, [edx + 2]
mov dword [ebp - 0x14c], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10039691
sub edx, dword [ebp - 0x14c]
sar edx, 1
mov ecx, 0x22
mov word [edi + edx*2], cx
test eax, eax
jne 0x100396fc
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.100513c3
add esp, 8
test eax, eax
jne 0x100396f6
mov eax, dword [ebp - 0x164]
mov dword [eax], esi
mov eax, dword [ebp - 0x168]
mov byte [eax], 1
mov dword [ebp - 4], 0
call fcn.1003980b
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x10039949
mov eax, dword [ebp - 0x144]
test al, 5
je 0x10039624
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [eax + 0x1e]
mov dword [ebp - 0x14c], 0
push 0x1000a
call fcn.1005218a
add esp, 4
mov ebx, eax
push 0x2000a
call fcn.1005218a
add esp, 4
mov esi, eax
test ebx, ebx
je 0x100397df
test esi, esi
je 0x100397df
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0xd4]
push eax
push str.DownloadFile:__s____s
push 0xffff
push esi
call fcn.1005211a
add esp, 0x14
test eax, eax
jle 0x100397ca
xor eax, eax
mov word [esi + 0x1fffe], ax
push 0xffffffffffffffff
push esi
mov ecx, esi
call fcn.10001b80
inc eax
push eax
push ebx
lea eax, [ebp - 0x14c]
push eax
call fcn.10052d14
add esp, 0x14
test eax, eax
je 0x100397a9
push edi
push esi
push str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.10052604
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
push ebx
push str.GetSiriusFileUpdate
push dword [ebp - 0x144]
mov edx, 0x10b
mov ecx, str...StandAloneSvcSirius.cpp
call fcn.10001cf0
add esp, 0x10
jmp 0x100397f7
push edi
push str.Error__d_in_swprintf_s_n
call fcn.10052604
add esp, 8
push str.Error_in_swprintf_s_n
jmp 0x100397f1
push str.Memory_allocation_error_in_log_file_n
call fcn.10052604
add esp, 4
push str.Memory_allocation_error_in_log_file_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test ebx, ebx
je 0x10039617
push ebx
jmp 0x1003960f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1005132c
mov esp, ebp
pop ebp
ret