Function at 0x4036d0
Capabilities:
Check if file exists
Check internet connectivity via wininet
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x4471f1
mov eax, dword fs:[0]
push eax
sub esp, 0x730
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0x72c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c5b0]
xor eax, esp
push eax
lea eax, [esp + 0x744]
mov dword fs:[0], eax
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x103
lea eax, [esp + 0x231]
push 0
push eax
mov byte [esp + 0x238], 0
call fcn.00434290
add esp, 0xc
lea ecx, [esp + 0x22c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x44de0b
lea ecx, [esp + 0x18]
call fcn.00401fc0
push 0x44de0b
lea ecx, [esp + 0x20]
mov dword [esp + 0x750], 0
call fcn.00401fc0
push 0x44de0b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x750], 1
call fcn.00401fc0
push 0x207
lea edx, [esp + 0x29]
push 0
mov byte [esp + 0x754], 2
push edx
mov byte [esp + 0x30], 0
call fcn.00434290
lea eax, [esp + 0x238]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4037b4
lea edi, [esp + 0x24]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4037c4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4037e0
mov ecx, dword [str.Version.ini]
mov edx, dword [0x44defc]
mov dword [eax], ecx
mov ecx, dword [0x44df00]
mov dword [eax + 4], edx
mov dl, byte [0x44df04]
mov dword [eax + 8], ecx
push 0x207
mov byte [eax + 0xc], dl
lea eax, [esp + 0x335]
push 0
push eax
call fcn.00434290
push 0x207
lea ecx, [esp + 0x549]
push 0
push ecx
call fcn.00434290
mov ecx, 0xe
mov esi, str.http:__www.bankofluoyang.com.cn_UploadFiles_Version.ini
lea edi, [esp + 0x348]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xa
mov esi, str.http:__www.jansh.com.cn_lybank_Version.ini
lea edi, [esp + 0x550]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x348]
add esp, 0x18
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403870
sub eax, edx
push eax
lea edx, [esp + 0x334]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402430
lea eax, [esp + 0x538]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403895
sub eax, edx
push eax
lea eax, [esp + 0x53c]
push eax
lea ecx, [esp + 0x20]
call fcn.00402430
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4038e0
lea ecx, [esp + 0x24]
push ecx
call ebp
mov ebx, dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov edi, edi
push 0
push 0
call ebx
test eax, eax
jne 0x403906
push 1
call edi
inc esi
cmp esi, 2
jl 0x4038f0
jmp 0x40390f
cmp esi, 2
jl 0x403991
mov byte [esp + 0x74c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403937
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40395f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x74c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40398a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403c70
mov edx, dword [esp + 0x14]
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jge 0x4039f1
mov ecx, dword [esp + 0x18]
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jge 0x4039f1
lea edx, [esp + 0x24]
push edx
call ebp
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x74c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40392b
mov eax, dword [esp + 0x754]
cmp eax, 1
jne 0x403a90
lea ecx, [esp + 0x24]
push ecx
push 0x104
push 0x46c350
push 0
push 0x44df6c
push str.JANSH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x403a54
lea edx, [esp + 0x24]
push edx
call ebp
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esp + 0x74c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40392b
push 0x46c350
mov edx, str.Version
mov ecx, str.SOFTWAREEnterSafeET199Auto_LYBank
call fcn.004065c0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x403bf1
cmp dword [esp + 0x758], eax
je 0x403bf1
mov ebx, str.Version
mov esi, str.SOFTWAREEnterSafeET199Auto_LYBank
jmp 0x403be7
cmp eax, 2
jne 0x403b24
lea ecx, [esp + 0x24]
push ecx
push 0x104
push 0x46c350
push 0
push 0x44df6c
push str.HTVer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x403aed
lea edx, [esp + 0x24]
push edx
call ebp
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x18]
call fcn.004026a0
lea ecx, [esp + 0x1c]
call fcn.004026a0
lea ecx, [esp + 0x14]
call fcn.004026a0
xor eax, eax
jmp 0x403c70
push 0x46c350
mov edx, str.HTVer
mov ecx, str.SoftwareEnterSafeET199Auto_LYBank
call fcn.004065c0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x403bf1
cmp dword [esp + 0x758], eax
je 0x403bf1
mov ebx, str.HTVer
jmp 0x403be2
cmp eax, 3
jne 0x403b84
lea eax, [esp + 0x24]
push eax
push 0x104
push 0x46c350
push 0
push 0x44df6c
push str.PSVer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x403b58
lea ecx, [esp + 0x24]
push ecx
jmp 0x403ac3
push 0x46c350
mov edx, str.PSVer
mov ecx, str.SoftwareEnterSafeET199Auto_LYBank
call fcn.004065c0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x403bf1
cmp dword [esp + 0x758], eax
je 0x403bf1
mov ebx, str.PSVer
jmp 0x403be2
cmp eax, 4
jne 0x403bf1
lea edx, [esp + 0x24]
push edx
push 0x104
push 0x46c350
push 0
push 0x44df6c
push str.SIGNVer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x403bb8
lea eax, [esp + 0x24]
push eax
jmp 0x403ac3
push 0x46c350
mov edx, str.SIGNVer
mov ecx, str.SoftwareEnterSafeET199Auto_LYBank
call fcn.004065c0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x403bf1
cmp dword [esp + 0x758], eax
je 0x403bf1
mov ebx, str.SIGNVer
mov esi, str.SoftwareEnterSafeET199Auto_LYBank
mov edi, 0x46c350
call fcn.00403630
mov byte [esp + 0x74c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x74c], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x74c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x744]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x72c]
xor ecx, esp
call fcn.00430bec
add esp, 0x73c
ret 8