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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0x1c], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0xc], 0
mov ecx, 5
mov esi, str.vssln._md
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
push 0x9c
push 0
lea eax, [ebp - 0x190]
push eax
call fcn.004063f0
add esp, 0xc
mov word [ebp - 0x32], 0x67
mov word [ebp - 0x2a], 0x37
mov word [ebp - 0x28], 0x32
push 0xa8
push 0
lea ecx, [ebp - 0xe0]
push ecx
call fcn.004063f0
add esp, 0xc
mov dword [ebp - 0xec], 0
lea edx, [ebp - 0x20]
push edx
push 0x65
call fcn.00405c52
add esp, 8
mov dword [ebp - 4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xf4], 0
cmp dword [ebp - 0x194], 0
jne 0x401b61
mov eax, dword [ebp - 0x1c]
movsx ecx, byte [eax]
cmp ecx, 0x41
je 0x401b61
mov edx, dword [ebp - 0x1c]
movsx eax, byte [edx + 1]
cmp eax, 0x42
je 0x401b61
push 4
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004060b0
add esp, 0xc
jmp 0x401b76
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4378b4]
mov dword [ecx + 0x394], edx
mov dword [ebp - 0xe8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2b4]
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x398], 1
push 0xe0001000
push 0x90001000
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0x57
je 0x401be0
cmp dword [ebp - 0x198], 0x1e7
jne 0x401ce7
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x19c], 0xfffff
mov dword [ebp - 0x1a4], 0
jmp 0x401c0f
mov eax, dword [ebp - 0x1a4]
add eax, 1
mov dword [ebp - 0x1a4], eax
mov ecx, dword [ebp - 0x1a4]
cmp ecx, dword [ebp - 0x19c]
jae 0x401c2e
mov edx, dword [ebp - 0x1a0]
add edx, 1
mov dword [ebp - 0x1a0], edx
jmp 0x401c00
mov eax, dword [ebp - 0x19c]
shl eax, 1
cmp eax, dword [ebp - 0x1a0]
jb 0x401cd7
push 0
push 0
push 3
push 0
push 4
push 2
push str.int.xml.apl.config_t
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0xffffffff
je 0x401c9d
mov dword [ebp - 0x1a8], 0
push 0
mov ecx, dword [ebp - 0xe8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea edx, [ebp - 0x1ac]
push edx
mov eax, dword [ebp - 0x1a8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jne 0x401cbe
mov dword [ebp - 0xec], 1
mov edx, dword [ebp - 0x20]
push edx
call fcn.00401dfd
add esp, 4
cmp dword [ebp - 0xec], 1
jae 0x401cd5
mov dword [ebp - 4], 0xff1a
mov dword [ebp - 0x20], 0xfaf0
jmp 0x401ce5
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
jmp 0x401cf5
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x398], 0
je 0x401d39
cmp dword [ebp - 0xec], 0
jbe 0x401d39
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x260], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2b4]
mov dword [0x437da0], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x4378c4]
mov dword [ecx + 0x280], edx
mov eax, dword [ebp - 4]
jmp 0x401d97
cmp dword [ebp - 0xe8], 0
je 0x401d6b
push 0
lea eax, [ebp - 0xec]
push eax
push 0xa
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x40d198
push 1
push 0
push 0x40d198
call dword [sym.imp.ole32.dll_CoCreateInstance]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0xa
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret