Function at 0x46377c
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.004384e0
add esp, 0xc
xor eax, eax
push 0x3e
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push edi
push eax
call fcn.004384e0
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.0045d348
pop ecx
pop ecx
mov esi, 0xdefc
push esi
test eax, eax
je 0x463877
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edi, [eax + ecx - 0xe1c]
mov dword [ebp - 8], edi
call fcn.00433bd9
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.004384e0
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.0045d535
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 [0x48a86c], ebx
sub ecx, eax
pop edi
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, edi
test dx, dx
jne 0x463849
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 0x463862
xor esi, esi
jmp 0x4639b8
call fcn.00433bd9
pop ecx
push esi
mov ebx, eax
push 0x478f10
push ebx
call fcn.004379a0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x18f]
push edi
push eax
mov byte [ebp - 0x190], 0
call fcn.004384e0
add esp, 0xc
push str.data.cab
mov eax, 0x104
lea edi, [ebp - 0x190]
call fcn.004557b2
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x463917
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebx + 0xb7c8], eax
call fcn.00434229
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.004557b2
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x463982
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebx + 0xb7d0], eax
call fcn.00434229
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 [0x48a86c], ebx
xor eax, eax
pop edi
movzx ecx, word [eax + 0x478f18]
mov word [ebp + eax - 0x88], cx
add eax, edi
cmp cx, si
jne 0x46398d
xor eax, eax
movzx ecx, word [eax + 0x47992c]
mov word [ebp + eax - 0x48], cx
add eax, edi
cmp cx, si
jne 0x4639a5
lea eax, [ebp - 0x48]
mov dword [ebx + 0xf3c], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, si
jne 0x4639c4
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x48]
cmp word [eax - 2], 0x2a
jne 0x4639f3
mov ecx, dword [0x48a86c]
mov dword [ecx + 0xf3c], 1
xor ecx, ecx
mov word [eax - 2], cx
mov edx, dword [0x48a86c]
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 0x463a02
mov edx, dword [0x48a86c]
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 0x463a23
push dword [0x48a86c]
call fcn.004626b7
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret