Function at 0x451240
Capabilities:
Get file size
Query or enumerate registry value
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x589929
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x688]
mov dword fs:[0], eax
mov esi, 0x5fe5fc
mov dword [esp + 0x68], vtable.CAutoRWLock.0
mov dword [esp + 0x6c], esi
mov edi, 1
mov byte [esp + 0x70], 1
call fcn.00403d40
xor ebp, ebp
mov dword [esp + 0x690], ebp
push 0x103
lea eax, [esp + 0x181]
push ebp
push eax
mov dword [esp + 0x64], edi
mov byte [esp + 0x188], 0
call fcn.004add60
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x4c], 0x104
call fcn.004030f0
mov byte [esp + 0x690], 1
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x180]
push eax
lea ecx, [esp + 0x60]
push ecx
push 0x5d2be4
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360EntAdmin.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x45139e
cmp dword [esp + 0x58], edi
jne 0x45139e
cmp dword [esp + 0x48], ebp
jbe 0x45139e
lea edx, [esp + 0x17c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x45139e
lea edx, [esp + 0x17c]
lea ebx, [esp + 0x14]
call fcn.00403440
mov eax, dword [esp + 0x14]
push 0x5c
push eax
call fcn.004a5259
add esp, 8
test eax, eax
jne 0x451359
or eax, 0xffffffff
jmp 0x45135d
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
lea edx, [esp + 0x18]
call fcn.00408930
mov byte [esp + 0x690], 2
lea ebx, [esp + 0x14]
call fcn.00406760
mov byte [esp + 0x690], 1
lea edx, [esp + 0x30]
push edx
call fcn.00403090
mov edx, str.360EntasdatapushGroups.dat
mov edi, ebx
call fcn.00403250
xor ebp, ebp
mov ebx, 0x8000
mov dword [esp + 0x60], ebp
mov dword [esp + 0x38], ebp
mov byte [esp + 0x690], 4
mov eax, dword [esp + 0x14]
push ebp
push 0x80
push 3
push ebp
push 7
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x45142f
call fcn.00450a30
cmp eax, ebp
jl 0x45140c
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x4c], eax
cmp eax, 0xffffffff
jne 0x451402
call fcn.00450a30
cmp eax, ebp
jl 0x45140c
mov eax, dword [esp + 0x4c]
mov ebx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
lea esi, [ebx + 0x10]
cmp esi, ebp
je 0x451435
push esi
call fcn.004a1f7a
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x451435
push esi
push ebp
push edi
call fcn.004add60
add esp, 0xc
jmp 0x451437
mov dword [esp + 0x38], eax
jmp 0x4513dc
xor edi, edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
mov byte [esp + 0x690], 5
cmp edi, ebp
jne 0x4514a9
mov byte [esp + 0x690], 4
push ebp
call fcn.004a4f88
add esp, 4
mov byte [esp + 0x690], 1
lea ecx, [esp + 0x38]
push ecx
call fcn.0044fe40
mov byte [esp + 0x690], 0
lea edx, [esp + 0x14]
push edx
call fcn.00403090
mov dword [esp + 0x690], 0xffffffff
push 0x5fe604
mov dword [esp + 0x6c], vtable.CAutoRWLock.0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [0x5fe620]
push eax
jmp 0x451cd4
push esi
push 0
push edi
mov dword [esp + 0x40], edi
call fcn.004add60
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
push ebx
push edi
push str.groups
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x24], 0x2c3b3d
call fcn.004030f0
mov byte [esp + 0x690], 6
lea eax, [esp + 0x18]
push eax
call fcn.004030f0
mov byte [esp + 0x690], 7
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x690], 8
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x451518
sub eax, ecx
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
je 0x451777
mov edi, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push ecx
push edi
call fcn.004a4487
add esp, 8
test eax, eax
je 0x451745
mov ecx, eax
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x451550
sub ecx, esi
push eax
mov edi, ecx
lea eax, [esp + 0x40]
call fcn.004033b0
lea ebx, [esp + 0x3c]
call fcn.00406560
mov edi, eax
call fcn.00406480
xor ebx, ebx
cmp ebp, ebx
je 0x4515cf
mov edi, dword [esp + 0x28]
cmp edi, ebx
jle 0x4515c2
mov esi, ebp
jmp 0x451590
mov dword [esp + 0x4c], esi
mov byte [esp + 0x690], 8
mov eax, dword [esi]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4515ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
sub edi, 1
jne 0x451590
push ebp
call fcn.004a4132
add esp, 4
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004a4487
add esp, 8
cmp eax, ebx
je 0x45172c
test eax, eax
jne 0x4515f5
xor ecx, ecx
jmp 0x451609
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x451600
sub ecx, esi
push eax
mov edi, ecx
lea eax, [esp + 0x1c]
call fcn.004033b0
lea ebx, [esp + 0x18]
call fcn.00406560
mov edi, eax
call fcn.00406480
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp ebp, ecx
jne 0x451685
mov eax, dword [esp + 0x24]
mov edx, ebx
cmp edx, eax
jb 0x451648
lea edx, [eax + ecx*4]
mov esi, ebx
cmp esi, edx
jb 0x451d0d
test ecx, ecx
jne 0x451651
lea esi, [ecx + 1]
jmp 0x451669
lea esi, [ebp + ebp]
test esi, esi
jl 0x451715
cmp esi, 0x1fffffff
ja 0x451715
push 4
push esi
push eax
call fcn.004a42ad
add esp, 0xc
test eax, eax
je 0x451715
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea ebx, [eax + ebp*4]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x690], 0xa
test ebx, ebx
je 0x451708
mov esi, dword [esp + 0x18]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4516c7
cmp eax, dword [esi]
jne 0x4516c7
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4516fb
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x451d17
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004a31ad
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
mov byte [esp + 0x690], 0xa
mov byte [esp + 0x690], 8
inc ebp
mov dword [esp + 0x28], ebp
lea edx, [esp + 0x20]
push edx
push 0
call fcn.004a4487
add esp, 8
test eax, eax
jne 0x4515f5
mov eax, dword [esp + 0x3c]
lea edi, [esp + 0x24]
call fcn.00452200
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
cmp byte [edi + esi + 1], 0
lea edi, [edi + esi + 1]
mov dword [esp + 0x34], edi
je 0x451777
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451760
sub eax, edx
mov esi, eax
mov dword [esp + 0x30], eax
test esi, esi
jne 0x451533
push 0x3ff
lea eax, [esp + 0x289]
push 0
push eax
mov byte [esp + 0x290], 0
call fcn.004add60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x288]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x284]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x284]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4517c3
sub eax, ecx
lea ecx, [esp + 0x284]
mov edi, eax
push ecx
lea eax, [esp + 0x18]
call fcn.004033b0
push str.htmlupdsrvcfg.ini
lea edx, [esp + 0x18]
push edx
mov edx, 0x13
call fcn.00403150
mov eax, dword [esp + 0x14]
push eax
push 0
push str.count
push str.upd_server
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x103
lea ecx, [esp + 0x79]
mov esi, eax
push 0
push ecx
mov dword [esp + 0x40], esi
mov byte [esp + 0x80], 0
call fcn.004add60
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
call fcn.004030f0
mov byte [esp + 0x690], 0xd
lea eax, [esp + 0x40]
push eax
call fcn.00451d20
mov byte [esp + 0x690], 0xe
xor eax, eax
test esi, esi
jle 0x451a9f
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc eax
push eax
push 0x5d2c34
lea edi, [esp + 0x24]
mov dword [esp + 0x38], eax
call fcn.00402e20
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add esp, 8
push ecx
push 0x103
lea edx, [esp + 0x7c]
push edx
push 0x5d2b98
push eax
push str.upd_server
call ebp
cmp byte [esp + 0x74], 0
je 0x451a91
lea eax, [esp + 0x74]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4518b0
sub eax, edx
lea ecx, [esp + 0x74]
mov edi, eax
push ecx
lea eax, [esp + 0x20]
call fcn.004033b0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push 0x103
lea eax, [esp + 0x7c]
push eax
push 0x5d2b98
push 0x5d8af8
push ecx
call ebp
lea eax, [esp + 0x74]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4518f0
sub eax, ecx
lea edx, [esp + 0x74]
mov edi, eax
push edx
lea eax, [esp + 0x44]
call fcn.004033b0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push eax
push 0x103
lea ecx, [esp + 0x7c]
push ecx
push 0x5d2b98
push str.moreip
push edx
call ebp
cmp byte [esp + 0x74], 0
je 0x45196a
push 0x5d3b64
lea eax, [esp + 0x44]
push eax
mov edx, 1
call fcn.00403150
lea eax, [esp + 0x74]
lea edx, [eax + 1]
jmp 0x451950
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451950
sub eax, edx
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x44]
push edx
mov edx, eax
call fcn.00403150
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push 0x50
push str.port
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push 0x103
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x7c]
push eax
push 0x5d2b98
push str.groups
push ecx
call ebp
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.004a4487
add esp, 8
test eax, eax
je 0x451a0b
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4519c0
sub ecx, esi
push eax
mov edi, ecx
lea eax, [esp + 0x1c]
call fcn.004033b0
lea ebx, [esp + 0x18]
call fcn.00406560
mov edi, eax
call fcn.00406480
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x4519f8
lea edi, [esp + 0x40]
call fcn.004522d0
lea ecx, [esp + 0x20]
push ecx
push 0
call fcn.004a4487
add esp, 8
test eax, eax
jne 0x4519bb
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push 0x103
lea eax, [esp + 0x7c]
push eax
push 0x5d2b98
push str.mids
push ecx
call ebp
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.004a4487
add esp, 8
test eax, eax
je 0x451a91
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x451a46
sub ecx, esi
push eax
mov edi, ecx
lea eax, [esp + 0x1c]
call fcn.004033b0
lea ebx, [esp + 0x18]
call fcn.00406560
mov edi, eax
call fcn.00406480
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], 0
je 0x451a7e
lea edi, [esp + 0x40]
call fcn.004522d0
lea ecx, [esp + 0x20]
push ecx
push 0
call fcn.004a4487
add esp, 8
test eax, eax
jne 0x451a41
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x34]
jl 0x451860
push 0x104
lea edx, [esp + 0x288]
push edx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x284]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x451ad0
sub eax, ecx
lea ecx, [esp + 0x284]
mov edi, eax
push ecx
lea eax, [esp + 0x18]
call fcn.004033b0
push str.360EntPublish.ini
lea edx, [esp + 0x18]
push edx
mov edx, 0x12
call fcn.00403150
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push ebx
push str.internet_flow_speed
push 0x5d8140
call edi
mov ecx, dword [esp + 0x14]
push ecx
push ebx
push str.intranet_flow
push 0x5d8140
mov esi, eax
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x603e14
mov edi, eax
call esi
push edi
push 0x603e20
call esi
inc dword [0x601e5c]
mov byte [esp + 0x690], 0xd
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x451b72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x690], 8
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 0x451b9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x690], 7
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
je 0x451bff
mov edi, dword [esp + 0x28]
cmp edi, ebx
jle 0x451bf2
mov esi, ebp
jmp 0x451bc0
mov dword [esp + 0x4c], esi
mov byte [esp + 0x690], 7
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451bea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
sub edi, 1
jne 0x451bc0
push ebp
call fcn.004a4132
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x690], 6
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 0x451c2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x690], 5
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451c57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x690], 4
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004a4f88
add esp, 4
mov byte [esp + 0x690], 1
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x451c87
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x690], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x451caf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x690], 0xffffffff
push 0x5fe604
mov dword [esp + 0x6c], vtable.CAutoRWLock.0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [0x5fe620]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x5fe608
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x688]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.004a314d
add esp, 0x680
ret
push 0x80004005
call fcn.00401e70
call fcn.00403300
int3