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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push ebx
push esi
push edi
xor eax, eax
push 0x3e
mov word [ebp - 0x48], ax
xor edi, edi
lea eax, [ebp - 0x46]
push edi
push eax
call fcn.00449020
add esp, 0xc
xor eax, eax
push 0x3e
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push edi
push eax
call fcn.00449020
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.00402bc5
pop ecx
pop ecx
mov esi, 0xb7d4
push esi
test eax, eax
je 0x40409c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edi, [eax + ecx - 0xe1c]
mov dword [ebp - 8], edi
call fcn.0043f248
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.00449020
mov eax, dword [ebp - 4]
mov dword [ebx + 0xb7c4], eax
mov eax, dword [edi]
mov dword [ebx + 0xb7c8], eax
add esp, 0xc
lea eax, [ebx + 0xb7d0]
push eax
lea eax, [ebx + 0xb7cc]
push eax
call fcn.004029fd
pop ecx
pop ecx
mov esi, edi
mov ecx, 0x387
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
lea eax, [esi + 8]
lea ecx, [ebp - 0x88]
push 2
mov dword [0x470e78], ebx
sub ecx, eax
pop edi
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, edi
test dx, dx
jne 0x40406e
lea eax, [esi + 0xa1c]
lea edx, [ebp - 0x48]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, edi
test cx, cx
jne 0x404087
xor esi, esi
jmp 0x4041d9
call fcn.0043f248
pop ecx
push esi
mov ebx, eax
push 0x462e90
push ebx
call fcn.00446800
add esp, 0xc
push 0x103
lea eax, [ebp - 0x18f]
push edi
push eax
mov byte [ebp - 0x190], 0
call fcn.00449020
add esp, 0xc
push str.data.cab
mov eax, 0x104
lea edi, [ebp - 0x190]
call fcn.0040f9bc
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40413a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [ebx + 0xb7c8]
push eax
mov dword [edi], eax
call fcn.0043ed38
pop ecx
push esi
lea ecx, [ebp - 8]
push ecx
push dword [edi]
mov dword [ebx + 0xb7c4], eax
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.theme.cab
mov eax, 0x104
lea edi, [ebp - 0x190]
call fcn.0040f9bc
push esi
push esi
push 3
push esi
push 1
push SysReAllocStringLen
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4041a3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [ebx + 0xb7d0]
push eax
mov dword [edi], eax
call fcn.0043ed38
pop ecx
push esi
lea ecx, [ebp - 8]
push ecx
push dword [edi]
mov dword [ebx + 0xb7cc], eax
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
mov dword [0x470e78], ebx
xor eax, eax
pop edi
movzx ecx, word [eax + 0x462e98]
mov word [ebp + eax - 0x88], cx
add eax, edi
cmp cx, si
jne 0x4041ae
xor eax, eax
movzx ecx, word [eax + 0x4638ac]
mov word [ebp + eax - 0x48], cx
add eax, edi
cmp cx, si
jne 0x4041c6
lea eax, [ebp - 0x48]
mov dword [ebx + 0xf3c], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, si
jne 0x4041e5
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x4a], 0x2a
jne 0x404225
mov eax, dword [0x470e78]
mov dword [eax + 0xf3c], 1
lea eax, [ebp - 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, si
jne 0x404210
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x4a], cx
mov edx, dword [0x470e78]
lea ecx, [ebp - 0x48]
add edx, 0xf28
movzx eax, word [ecx]
mov word [edx], ax
add ecx, edi
add edx, edi
cmp ax, si
jne 0x404234
mov edx, dword [0x470e78]
lea ecx, [ebp - 0x88]
add edx, 0xf40
movzx eax, word [ecx]
mov word [edx], ax
add ecx, edi
add edx, edi
cmp ax, si
jne 0x404255
push dword [0x470e78]
call fcn.00403178
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret