Function at 0x407625
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.0043bbc0
add esp, 0xc
xor eax, eax
push 0x3e
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push edi
push eax
call fcn.0043bbc0
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.00405c5d
pop ecx
pop ecx
mov esi, 0xb7d4
push esi
test eax, eax
je 0x407720
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edi, [eax + ecx - 0xe1c]
mov dword [ebp - 8], edi
call fcn.0043ac16
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.0043bbc0
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.00405a95
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 [0x46a494], ebx
sub ecx, eax
pop edi
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, edi
test dx, dx
jne 0x4076f2
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 0x40770b
xor esi, esi
jmp 0x407861
call fcn.0043ac16
pop ecx
push esi
mov ebx, eax
push 0x45c1d8
push ebx
call fcn.0043b850
add esp, 0xc
push 0x103
lea eax, [ebp - 0x18f]
push edi
push eax
mov byte [ebp - 0x190], 0
call fcn.0043bbc0
add esp, 0xc
push str.data.cab
mov eax, 0x104
lea edi, [ebp - 0x190]
call fcn.00402362
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 0x4077c0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebx + 0xb7c8], eax
call fcn.0043b28d
pop ecx
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx + 0xb7c8]
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.00402362
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 0x40782b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebx + 0xb7d0], eax
call fcn.0043b28d
pop ecx
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx + 0xb7d0]
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 [0x46a494], ebx
xor eax, eax
pop edi
movzx ecx, word [eax + 0x45c1e0]
mov word [ebp + eax - 0x88], cx
add eax, edi
cmp cx, si
jne 0x407836
xor eax, eax
movzx ecx, word [eax + 0x45cbf4]
mov word [ebp + eax - 0x48], cx
add eax, edi
cmp cx, si
jne 0x40784e
lea eax, [ebp - 0x48]
mov dword [ebx + 0xf3c], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, si
jne 0x40786d
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x48]
cmp word [eax - 2], 0x2a
jne 0x40789c
mov ecx, dword [0x46a494]
mov dword [ecx + 0xf3c], 1
xor ecx, ecx
mov word [eax - 2], cx
mov edx, dword [0x46a494]
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 0x4078ab
mov edx, dword [0x46a494]
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 0x4078cc
push dword [0x46a494]
call fcn.00405e4a
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret