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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
xor eax, eax
mov word [ebp - 0x1c], ax
push ebx
push esi
push edi
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0045db14
pop ecx
pop ecx
mov edi, 0xfe0a
push edi
test eax, eax
je 0x46410a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea esi, [eax + ecx - 0x101c]
xor eax, eax
mov word [esi + 0x21a], ax
mov word [esi + 0xc2e], ax
mov word [esi + 0x41a], ax
mov word [esi + 0x61a], ax
mov word [esi + 0x81a], ax
mov word [esi + 0xa1a], ax
mov word [esi + 0xc1a], ax
mov word [esi + 0x101a], ax
call fcn.004369bd
pop ecx
push edi
mov ebx, eax
push 0
push ebx
call fcn.0043b5d0
mov eax, dword [ebp - 4]
mov dword [ebx + 0xcbc3], eax
mov eax, dword [esi]
mov dword [ebx + 0xcbc7], eax
add esp, 0xc
lea eax, [ebx + 0xcbcf]
push eax
lea eax, [ebx + 0xcbcb]
push eax
call fcn.0045dd01
push 0x101c
push esi
push ebx
call fcn.0043aa90
add esp, 0x14
mov ecx, ebx
lea eax, [esi + 0x208]
lea edx, [ebp - 0x30]
push 2
mov dword [0x48e8ec], ecx
sub edx, eax
pop edi
movzx ebx, word [eax]
mov word [edx + eax], bx
add eax, edi
test bx, bx
jne 0x4640dc
add esi, 0xc1c
lea edx, [ebp - 0x1c]
sub edx, esi
movzx eax, word [esi]
mov word [edx + esi], ax
add esi, edi
test ax, ax
jne 0x4640f5
xor ebx, ebx
jmp 0x464247
call fcn.004369bd
pop ecx
push edi
mov esi, eax
push 0x47b090
push esi
call fcn.0043aa90
add esp, 0xc
push 0x103
lea eax, [ebp - 0x137]
push ebx
push eax
mov byte [ebp - 0x138], bl
call fcn.0043b5d0
add esp, 0xc
push str.data.cab
mov eax, 0x104
lea edi, [ebp - 0x138]
call fcn.0046605c
push ebx
push ebx
push 3
push ebx
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 0x4641a7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 0xcbc7], eax
call fcn.00437405
pop ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [esi + 0xcbc7]
mov dword [esi + 0xcbc3], 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 - 0x138]
call fcn.0046605c
push ebx
push ebx
push 3
push ebx
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 0x464212
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 0xcbcf], eax
call fcn.00437405
pop ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [esi + 0xcbcf]
mov dword [esi + 0xcbcb], 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]
mov ecx, esi
push 2
mov dword [0x48e8ec], ecx
xor eax, eax
pop edi
movzx edx, word [eax + 0x47b298]
mov word [ebp + eax - 0x30], dx
add eax, edi
cmp dx, bx
jne 0x46421f
xor eax, eax
movzx edx, word [eax + 0x47bcac]
mov word [ebp + eax - 0x1c], dx
add eax, edi
cmp dx, bx
jne 0x464234
lea eax, [ebp - 0x1c]
mov dword [ecx + 0x113c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, bx
jne 0x464253
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x1c]
cmp word [eax - 2], 0x2a
jne 0x464282
mov ecx, dword [0x48e8ec]
mov dword [ecx + 0x113c], 1
xor ecx, ecx
mov word [eax - 2], cx
mov edx, dword [0x48e8ec]
lea ecx, [ebp - 0x1c]
add edx, 0x1128
movzx eax, word [ecx]
mov word [edx], ax
add ecx, edi
add edx, edi
cmp ax, bx
jne 0x464291
mov edx, dword [0x48e8ec]
lea ecx, [ebp - 0x30]
add edx, 0x1140
movzx eax, word [ecx]
mov word [edx], ax
add ecx, edi
add edx, edi
cmp ax, bx
jne 0x4642af
push dword [0x48e8ec]
call fcn.00462e19
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret