Function at 0x401510
Capabilities:
Connect to http server
Create http request
Download and write a file
Get common file path
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4128b8
mov eax, dword fs:[0]
push eax
mov eax, 0x4e64
call fcn.00412050
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4e58], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push str.Custom_Browser
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x4e60], eax
cmp dword [ebp - 0x4e60], 0
jne 0x4015a0
mov ecx, dword [ebp + 8]
call fcn.00401cf0
mov eax, dword [ebp - 0x4e58]
or eax, 1
mov dword [ebp - 0x4e58], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401c30
mov eax, dword [ebp + 8]
jmp 0x401b55
push 0
push 0
push 3
push 0
push 0
push 0x50
push str.viewer.nanet.go.kr
mov ecx, dword [ebp - 0x4e60]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x4e68], eax
cmp dword [ebp - 0x4e68], 0
jne 0x401608
mov edx, dword [ebp - 0x4e60]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
call fcn.00401cf0
mov eax, dword [ebp - 0x4e58]
or eax, 1
mov dword [ebp - 0x4e58], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401c30
mov eax, dword [ebp + 8]
jmp 0x401b55
push 0
push 0x4040100
push 0x4185c0
push 0
push 0
push str._assets_nanet_nalsvc_StreamdocsAgentSetup_portable.exe
push 0x418600
mov ecx, dword [ebp - 0x4e68]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x4e5c], eax
cmp dword [ebp - 0x4e5c], 0
jne 0x401686
mov edx, dword [ebp - 0x4e68]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4e60]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
call fcn.00401cf0
mov ecx, dword [ebp - 0x4e58]
or ecx, 1
mov dword [ebp - 0x4e58], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401c30
mov eax, dword [ebp + 8]
jmp 0x401b55
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x4e5c]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x4e6c], eax
cmp dword [ebp - 0x4e6c], 0
jne 0x4016ff
mov eax, dword [ebp - 0x4e5c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x4e68]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4e60]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
call fcn.00401cf0
mov eax, dword [ebp - 0x4e58]
or eax, 1
mov dword [ebp - 0x4e58], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401c30
mov eax, dword [ebp + 8]
jmp 0x401b55
mov dword [ebp - 0x4e3c], 4
push 0
lea ecx, [ebp - 0x4e3c]
push ecx
lea edx, [ebp - 0x4e54]
push edx
push 0x20000005
mov eax, dword [ebp - 0x4e5c]
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x4e6c], eax
cmp dword [ebp - 0x4e6c], 0
jne 0x40178f
mov ecx, dword [ebp - 0x4e5c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4e68]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4e60]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
call fcn.00401cf0
mov ecx, dword [ebp - 0x4e58]
or ecx, 1
mov dword [ebp - 0x4e58], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401c30
mov eax, dword [ebp + 8]
jmp 0x401b55
mov edx, dword [ebp - 0x4e54]
push edx
call fcn.00406d5c
add esp, 4
mov dword [ebp - 0x4e64], eax
mov dword [ebp - 0x4e40], 0
mov eax, dword [ebp - 0x4e54]
mov dword [ebp - 0x4e3c], eax
lea ecx, [ebp - 0x4e40]
push ecx
lea edx, [ebp - 0x4e3c]
push edx
mov eax, dword [ebp - 0x4e64]
push eax
push 0x13
mov ecx, dword [ebp - 0x4e5c]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov dword [ebp - 0x4e6c], eax
cmp dword [ebp - 0x4e6c], 0
je 0x401824
cmp dword [ebp - 0x4e3c], 0
je 0x401824
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0x4e64]
movsx edx, byte [ecx + eax]
cmp edx, 0x34
je 0x401824
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0x4e64]
movsx eax, byte [edx + ecx]
cmp eax, 0x35
jne 0x401888
mov ecx, dword [ebp - 0x4e64]
push ecx
call fcn.00406b2d
add esp, 4
mov edx, dword [ebp - 0x4e5c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4e68]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x4e60]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
call fcn.00401cf0
mov edx, dword [ebp - 0x4e58]
or edx, 1
mov dword [ebp - 0x4e58], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401c30
mov eax, dword [ebp + 8]
jmp 0x401b55
lea eax, [ebp - 0x4e38]
push eax
push 0x2710
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x4e50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x4e42]
push edx
movzx eax, word [ebp - 0x4e44]
push eax
movzx ecx, word [ebp - 0x4e46]
push ecx
movzx edx, word [ebp - 0x4e48]
push edx
movzx eax, word [ebp - 0x4e4a]
push eax
movzx ecx, word [ebp - 0x4e4e]
push ecx
movzx edx, word [ebp - 0x4e50]
push edx
lea eax, [ebp - 0x4e38]
push eax
push str._s__d_02d_02d_02d_02d_02d_03d.exe
push 0x2710
lea ecx, [ebp - 0x2724]
push ecx
call fcn.00401060
add esp, 0x2c
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea edx, [ebp - 0x2724]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x4e70], eax
cmp dword [ebp - 0x4e70], 0xffffffff
jne 0x401991
mov eax, dword [ebp - 0x4e64]
push eax
call fcn.00406b2d
add esp, 4
mov ecx, dword [ebp - 0x4e5c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4e68]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4e60]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
call fcn.00401cf0
mov ecx, dword [ebp - 0x4e58]
or ecx, 1
mov dword [ebp - 0x4e58], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401c30
mov eax, dword [ebp + 8]
jmp 0x401b55
lea edx, [ebp - 0x4e3c]
push edx
mov eax, dword [ebp - 0x4e54]
push eax
mov ecx, dword [ebp - 0x4e64]
push ecx
mov edx, dword [ebp - 0x4e5c]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x4e6c], eax
cmp dword [ebp - 0x4e6c], 0
je 0x4019d0
mov eax, dword [ebp - 0x4e54]
cmp eax, dword [ebp - 0x4e3c]
je 0x401a41
mov ecx, dword [ebp - 0x4e70]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x4e64]
push edx
call fcn.00406b2d
add esp, 4
mov eax, dword [ebp - 0x4e5c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x4e68]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4e60]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
call fcn.00401cf0
mov eax, dword [ebp - 0x4e58]
or eax, 1
mov dword [ebp - 0x4e58], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401c30
mov eax, dword [ebp + 8]
jmp 0x401b55
push 0
lea ecx, [ebp - 0x4e3c]
push ecx
mov edx, dword [ebp - 0x4e3c]
push edx
mov eax, dword [ebp - 0x4e64]
push eax
mov ecx, dword [ebp - 0x4e70]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4e6c], eax
cmp dword [ebp - 0x4e6c], 0
jne 0x401ae2
mov edx, dword [ebp - 0x4e70]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4e64]
push eax
call fcn.00406b2d
add esp, 4
mov ecx, dword [ebp - 0x4e5c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4e68]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4e60]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
call fcn.00401cf0
mov ecx, dword [ebp - 0x4e58]
or ecx, 1
mov dword [ebp - 0x4e58], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401c30
mov eax, dword [ebp + 8]
jmp 0x401b55
mov edx, dword [ebp - 0x4e70]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4e64]
push eax
call fcn.00406b2d
add esp, 4
mov ecx, dword [ebp - 0x4e5c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x4e68]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x4e60]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x2724]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401c80
mov edx, dword [ebp - 0x4e58]
or edx, 1
mov dword [ebp - 0x4e58], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401c30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402849
mov esp, ebp
pop ebp
ret