Function at 0x465484
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4b9e84
call fcn.0049dfc4
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
lea esi, [eax + 0xc]
push edi
xor ebp, ebp
mov ebx, ecx
push dword [esi]
mov dword [esp + 0x1c], ebp
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], ebp
mov dword [esp + 0x30], ebp
lea edi, [ebx + 0x24]
mov dword [esp + 0x24], ebp
mov ecx, edi
call fcn.00402f35
mov edi, dword [edi + 4]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
je 0x465512
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
jne 0x46550e
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0xffffffffffffffff
push str._xml_xmlns:rs_urn:schemas_microsoft_com:rowset__xmlns:z_urn:schemas_microsoft_com:rowsetRowsetSchema___r_n_t_rs:data__r_n_t__rs:data__r_n__xml_
push esi
call fcn.004126aa
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4656eb
mov ebp, dword [esp + 0x30]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [ebx + 0x34], 0
mov edi, eax
je 0x46564d
lea ebx, [edi - 3]
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4655e2
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], ebx
push edi
je 0x46556a
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4655e2
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebp, ebp
je 0x465584
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esp + 0x30], 0
mov ebp, dword [esp + 0x30]
push 0
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x465561
push 0x4e8c2c
push ebx
push edi
call fcn.00477870
test eax, eax
mov dword [esp + 0x10], eax
push edi
jge 0x4655c8
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
push ebx
call esi
test ebp, ebp
je 0x4655bf
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x4656eb
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esp + 0x10], eax
push ebx
jne 0x4655f7
call edi
test ebp, ebp
je 0x4655ed
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
jmp 0x4656eb
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0049e01f
push edi
mov ebp, eax
push dword [esp + 0x18]
push ebp
call fcn.0049e1e0
and byte [edi + ebp], 0
add esp, 0x10
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0xffffffffffffffff
push ebp
push esi
call fcn.004126aa
push ebp
call fcn.00491430
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebp, dword [esp + 0x30]
jmp 0x4656dc
lea eax, [edi + 1]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
and dword [esp + 0x10], 0
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4656be
mov eax, dword [esp + 0x10]
inc eax
push eax
call fcn.0049e01f
push dword [esp + 0x14]
mov edi, eax
push ebx
push edi
call fcn.0049e1e0
mov eax, dword [esp + 0x20]
add esp, 0x10
and byte [edi + eax], 0
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0xffffffffffffffff
push edi
push esi
call fcn.004126aa
push edi
call fcn.00491430
add esp, 0x10
jmp 0x4656c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebp, ebp
je 0x4656e7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4