Function at 0x404780
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4462db
mov eax, dword fs:[0]
push eax
sub esp, 0x554
mov eax, dword [0x45b738]
xor eax, esp
mov dword [esp + 0x550], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b738]
xor eax, esp
push eax
lea eax, [esp + 0x568]
mov dword fs:[0], eax
mov eax, dword [esp + 0x578]
xor ebx, ebx
cmp dword [0x46019c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
je 0x4047f8
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x46019c]
cmp dword [esp + 0x14], ebx
je 0x4047f8
lea edx, [esp + 0x18]
push edx
push 0x44f478
jmp 0x404802
lea eax, [esp + 0x18]
push eax
push str.SoftwareOracle
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebx
jne 0x4049d7
push 0x3ff
lea ecx, [esp + 0x169]
push ebx
push ecx
mov dword [esp + 0x30], 1
mov byte [esp + 0x170], bl
call fcn.0042b0d0
add esp, 0xc
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push str.inst_loc
push edx
mov dword [esp + 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x4049d7
lea eax, [esp + 0x164]
push eax
push str._sContentsXMLinventory.xml
lea ecx, [esp + 0x6c]
push 0x100
push ecx
call fcn.00429801
add esp, 0x10
push ebx
push 0x80
push 4
push ebx
push ebx
push SysReAllocString
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea ebp, [edi + 1]
push ebp
call fcn.0040ca4b
push ebp
mov esi, eax
push ebx
push esi
call fcn.0042b0d0
add esp, 0x10
push ebx
lea eax, [esp + 0x20]
push eax
push edi
mov edi, dword [esp + 0x20]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
cmp al, bl
je 0x4048f1
cmp dword [esp + 0x1c], ebx
je 0x4049d7
mov eax, esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404906
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x34]
call fcn.004028f0
push 9
push str.HOME_NAME
lea ecx, [esp + 0x34]
push ecx
xor eax, eax
mov dword [esp + 0x57c], ebx
call fcn.00409ae0
cmp eax, 0xffffffff
jne 0x404958
cmp dword [esp + 0x44], 0x10
jb 0x4049d7
mov edx, dword [esp + 0x30]
push edx
call fcn.0040ca46
add esp, 4
jmp 0x4049d7
push 5
push str.LOC_
lea ecx, [esp + 0x34]
add eax, 1
push ecx
call fcn.00409ae0
mov esi, eax
cmp esi, 0xffffffff
je 0x4049ce
lea edx, [esi + 6]
push edx
lea eax, [esp + 0x30]
push eax
mov edx, 0x44f514
call fcn.00408390
sub eax, esi
sub eax, 5
lea ecx, [esi + 5]
push eax
lea esi, [esp + 0x4c]
lea edx, [esp + 0x30]
call fcn.004083c0
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x4049ab
lea eax, [esp + 0x4c]
mov ecx, dword [esp + 0x28]
push eax
push str._s_network_admin_tnsnames.ora
push ecx
call fcn.004298ae
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x48]
call fcn.00401f70
lea ecx, [esp + 0x2c]
call fcn.00401f70
mov ecx, dword [esp + 0x568]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x550]
xor ecx, esp
call fcn.00428ac7
add esp, 0x560
ret 4