Function at 0x4070e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d38e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
mov eax, dword [0x43b988]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push ecx
call fcn.0040c900
add esp, 4
mov ebx, 1
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00421588
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0042149b
mov edx, dword [str.Ofcscan.ini]
lea ecx, [ebp - 0x58]
push edx
call fcn.00421509
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x48]
push eax
lea edx, [ebp - 0x54]
push ecx
push edx
mov byte [ebp - 4], 2
call fcn.0040ce30
add esp, 0xc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0042149b
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x290]
push eax
push 0x104
push ecx
push 0x43f2b0
push str.MasterDirectory
push str.INI_SERVER_SECTION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x290]
lea ecx, [ebp - 0x48]
push edx
call fcn.004215d8
mov byte [esi + 0x1b8], bl
mov eax, dword [0x43b988]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
call fcn.0040c880
cmp eax, 2
jne 0x407611
mov edx, dword [0x43a168]
lea ecx, [ebp - 0x28]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ab9
mov eax, dword [str.Mode]
mov ecx, dword [ebp - 0x28]
push eax
push ecx
call fcn.0040d250
add esp, 8
test eax, eax
jne 0x4072fc
mov edx, dword [str.Ofcscan.ini]
lea ecx, [ebp - 0x24]
push edx
call fcn.00421509
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x48]
push eax
lea edx, [ebp - 0x14]
push ecx
push edx
mov byte [ebp - 4], 6
call fcn.0040ce30
add esp, 0xc
mov bl, 8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0042149b
mov eax, dword [ebp - 0x14]
push 0
push 0
push eax
call dword [sym.imp.ActSup.dll_ASUNCFileStatus]
add esp, 0xc
test eax, eax
jne 0x40729f
mov ecx, dword [0x43b988]
mov dword [ebp - 0x1c], ecx
push 0xcd
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.00421165
mov edx, dword [0x43a620]
lea eax, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x2c]
push eax
push ecx
call fcn.004216e4
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0xa
call fcn.004217f3
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.0042149b
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
jmp 0x4072eb
mov edx, dword [0x43b988]
mov dword [ebp - 0x1c], edx
push 0xce
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00421165
mov eax, dword [0x43a620]
lea ecx, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x2c]
push ecx
push edx
call fcn.004216e4
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0xc
call fcn.004217f3
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.0042149b
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.0042149b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
jmp 0x407ab4
mov eax, dword [0x43f2ac]
mov ecx, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x14]
push ecx
push edx
call fcn.0040d180
mov eax, dword [ebp - 0x14]
push 0x7d0
push 2
push 0x1388
push eax
call dword [sym.imp.ActSup.dll_ASHasInternetConnection]
add esp, 0x1c
and eax, 0xff
mov dword [ebp - 0x4c], eax
je 0x407595
mov edi, str._OfficeScan_cgi_cgiRqUpd.exe
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x34], 2
jge 0x4075fb
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xe
call fcn.0040aaf0
mov edx, dword [ebp - 0x28]
push 0
push 0
push 0
lea ecx, [ebp - 0x68]
push edi
push ecx
push edx
mov ecx, esi
mov byte [ebp - 4], 0xf
call fcn.00406e00
mov eax, dword [0x43b988]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x10
push ecx
lea ecx, [ebp - 0x68]
call fcn.0040abf0
mov edx, dword [0x43b988]
mov dword [ebp - 0x38], edx
mov bl, 0x11
push 0xbf
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.00421165
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x38]
push eax
push edi
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.0041f3d1
mov eax, dword [0x43a620]
add esp, 0x10
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x2c]
push eax
push ecx
push edx
call fcn.004216e4
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0x12
call fcn.004217f3
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0042149b
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x10
call fcn.0042149b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xf
call fcn.0042149b
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xe
call fcn.0040ab10
jmp 0x4075fb
mov eax, dword [0x43b988]
mov dword [ebp - 0x20], eax
mov bl, 0x1a
push 0xbe
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00421165
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push ecx
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.0041f3d1
mov ecx, dword [0x43a620]
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x30]
push ecx
push edx
push eax
call fcn.004216e4
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0x1b
call fcn.004217f3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0042149b
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xd
call fcn.0042149b
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
jmp 0x407ab4
cmp eax, ebx
jne 0x407ab9
mov eax, dword [str.SoftwareTrendMicroOfficeScanCorpCurrentVersion]
lea edx, [ebp - 0x28]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407ab9
mov ecx, dword [str.Mode]
mov edx, dword [ebp - 0x28]
push ecx
push edx
call fcn.0040d250
add esp, 8
test eax, eax
jne 0x40774b
mov eax, dword [str.Ofcscan.ini]
lea ecx, [ebp - 0x24]
push eax
call fcn.00421509
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x20]
push edx
push eax
mov byte [ebp - 4], 0x1c
call fcn.0040ce30
add esp, 0xc
mov bl, 0x1e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.0042149b
mov ecx, dword [ebp - 0x20]
push 0
push 0
push ecx
call dword [sym.imp.ActSup.dll_ASUNCFileStatus]
add esp, 0xc
test eax, eax
jne 0x4076ee
mov edx, dword [0x43b988]
mov dword [ebp - 0x14], edx
push 0xcd
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1f
call fcn.00421165
mov eax, dword [0x43a620]
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x30]
push ecx
push edx
call fcn.004216e4
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0x20
call fcn.004217f3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1f
call fcn.0042149b
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
jmp 0x40773a
mov eax, dword [0x43b988]
mov dword [ebp - 0x14], eax
push 0xce
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x21
call fcn.00421165
mov ecx, dword [0x43a620]
lea edx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x30]
push edx
push eax
call fcn.004216e4
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0x22
call fcn.004217f3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x21
call fcn.0042149b
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0042149b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
jmp 0x407ab4
mov ecx, dword [str.ServerIP]
mov edx, dword [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.0040d180
mov ecx, dword [str.Server]
mov edx, dword [ebp - 0x28]
push ecx
lea eax, [ebp - 0x2c]
push edx
push eax
mov byte [ebp - 4], 0x23
call fcn.0040d180
add esp, 0x18
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0x24
mov eax, dword [ecx - 8]
test eax, eax
lea eax, [ebp - 0x2c]
je 0x40778e
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x38]
call fcn.00421210
mov edx, dword [ebp - 0x38]
push 0x7d0
push 2
push 0x1388
push edx
call dword [sym.imp.ActSup.dll_ASHasInternetConnection]
add esp, 0x10
and eax, 0xff
mov dword [ebp - 0x4c], eax
je 0x407a24
mov edi, str._OfficeScan_cgi_cgiRqUpd.exe
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], edi
cmp dword [ebp - 0x3c], 2
jge 0x407a8b
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x26
call fcn.0040aaf0
mov ecx, dword [ebp - 0x28]
push 0
push 0
push 0
lea eax, [ebp - 0x68]
push edi
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 0x27
call fcn.00406bd0
mov edx, dword [0x43b988]
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 4], 0x28
call fcn.0040abf0
mov ecx, dword [0x43b988]
mov dword [ebp - 0x14], ecx
mov bl, 0x29
push 0xbf
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00421165
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push edx
push edi
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.0041f3d1
mov edx, dword [0x43a620]
add esp, 0x10
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x30]
push edx
push eax
push ecx
call fcn.004216e4
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0x2a
call fcn.004217f3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0042149b
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x28
call fcn.0042149b
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x27
call fcn.0042149b
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x26
call fcn.0040ab10
jmp 0x407a8b
mov ecx, dword [0x43b988]
mov dword [ebp - 0x14], ecx
mov bl, 0x32
push 0xbe
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00421165
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.0041f3d1
mov edx, dword [0x43a620]
add esp, 0xc
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x4c]
push edx
push eax
push ecx
call fcn.004216e4
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 0x33
call fcn.004217f3
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0042149b
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x25
call fcn.0042149b
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x24
call fcn.0042149b
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x23
call fcn.0042149b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.0042149b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0042149b
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.0042149b
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.0042149b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4