Function at 0x403f9a
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.0044ded0
add esp, 0xc
xor eax, eax
push 0x3e
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push edi
push eax
call fcn.0044ded0
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.00402bbe
pop ecx
pop ecx
mov esi, 0xb7d4
push esi
test eax, eax
je 0x404095
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edi, [eax + ecx - 0xe1c]
mov dword [ebp - 8], edi
call fcn.004441b8
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.0044ded0
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.004029f6
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 [0x475e78], ebx
sub ecx, eax
pop edi
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, edi
test dx, dx
jne 0x404067
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 0x404080
xor esi, esi
jmp 0x4041d2
call fcn.004441b8
pop ecx
push esi
mov ebx, eax
push 0x467e90
push ebx
call fcn.0044b6b0
add esp, 0xc
push 0x103
lea eax, [ebp - 0x18f]
push edi
push eax
mov byte [ebp - 0x190], 0
call fcn.0044ded0
add esp, 0xc
push str.data.cab
mov eax, 0x104
lea edi, [ebp - 0x190]
call fcn.0040f969
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 0x404133
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [ebx + 0xb7c8]
push eax
mov dword [edi], eax
call fcn.00443ca8
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.0040f969
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 0x40419c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edi, [ebx + 0xb7d0]
push eax
mov dword [edi], eax
call fcn.00443ca8
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 [0x475e78], ebx
xor eax, eax
pop edi
movzx ecx, word [eax + 0x467e98]
mov word [ebp + eax - 0x88], cx
add eax, edi
cmp cx, si
jne 0x4041a7
xor eax, eax
movzx ecx, word [eax + 0x4688ac]
mov word [ebp + eax - 0x48], cx
add eax, edi
cmp cx, si
jne 0x4041bf
lea eax, [ebp - 0x48]
mov dword [ebx + 0xf3c], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, si
jne 0x4041de
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x4a], 0x2a
jne 0x40421e
mov eax, dword [0x475e78]
mov dword [eax + 0xf3c], 1
lea eax, [ebp - 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, edi
cmp cx, si
jne 0x404209
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x4a], cx
mov edx, dword [0x475e78]
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 0x40422d
mov edx, dword [0x475e78]
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 0x40424e
push dword [0x475e78]
call fcn.00403171
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret