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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x524
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x30]
test eax, eax
push esi
push edi
mov dword [esp + 0x10], ebx
je 0x41128b
mov eax, dword [ebx + 0x34]
cmp eax, 8
lea edi, [ebx + 0x1c]
mov dword [esp + 0xc], 0
jb 0x4111b8
mov esi, dword [edi + 4]
jmp 0x4111bb
lea esi, [edi + 4]
test esi, esi
je 0x4111f6
nop
mov eax, dword [esp + 0xc]
cmp eax, dword [ebp + 8]
jge 0x4111f2
push 0x7c
push esi
call fcn.0042b3cd
mov esi, eax
add esp, 8
test esi, esi
je 0x4111e3
cmp word [esi], 0x7c
jne 0x4111e3
add esi, 2
mov ecx, dword [esp + 0xc]
inc ecx
test esi, esi
mov dword [esp + 0xc], ecx
jne 0x4111c0
jmp 0x4111f6
test esi, esi
jne 0x41122d
mov edx, dword [edi + 0x18]
cmp edx, 8
lea eax, [edi + 4]
jb 0x411205
mov ecx, dword [eax]
jmp 0x411207
mov ecx, eax
cmp edx, 8
mov esi, dword [edi + 0x14]
lea ecx, [ecx + esi*2]
jb 0x411214
mov eax, dword [eax]
push ecx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.0040ed60
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp word [esi], 0x7c
jne 0x411236
add esi, 2
push 0x7c
push esi
call fcn.0042b3cd
add esp, 8
test eax, eax
je 0x411270
sub eax, esi
sar eax, 1
shl eax, 1
shr eax, 1
cmp eax, 0x7fffffff
ja 0x41127f
push eax
push esi
push 0x208
lea edx, [ebx + 0x44]
push edx
call fcn.004081a0
lea eax, [ebx + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push 0x208
lea eax, [ebx + 0x44]
push eax
call fcn.00408090
lea eax, [ebx + 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebx + 0x38]
mov edx, dword [ecx + 4]
add edx, 2
push str.SHELLEXT
push edx
call fcn.0042a883
add esp, 8
test eax, eax
jne 0x4114ea
mov byte [esp + 0x18], al
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 0x104
lea esi, [esp + 0x18]
mov edx, 0x43d888
stosb byte es:[edi], al
call fcn.0040c040
xor esi, esi
xor eax, eax
mov word [esp + 0x120], si
mov ecx, 0x81
lea edi, [esp + 0x122]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
lea eax, [esp + 0x124]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
push ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp + 0x120]
push 0x5c
push edx
call fcn.0042aeed
add esp, 8
cmp eax, esi
push str.Data
push ebx
je 0x411333
mov word [eax + 2], si
lea eax, [esp + 0x128]
push eax
call fcn.0040bdf0
jmp 0x411340
lea ecx, [esp + 0x128]
push ecx
call fcn.00408090
push str.RavExt.ini
lea edx, [esp + 0x124]
push 0x104
push edx
call fcn.0040c8c0
push esi
push 0x80
push 3
push esi
push 1
lea eax, [esp + 0x140]
push 0x80000000
push eax
call fcn.00405ac0
mov ebx, eax
add esp, 0x28
cmp ebx, esi
je 0x411222
cmp ebx, 0xffffffff
je 0x411222
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x4114d8
cmp eax, 0x1f4000
ja 0x4114d8
shr eax, 1
lea edi, [eax + eax + 0xa]
push edi
call fcn.00429bd8
mov esi, eax
add esp, 4
test esi, esi
je 0x411222
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
xor edi, edi
push edi
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp word [esi], 0xfeff
jne 0x4114c4
push 0x43e9e0
push esi
call fcn.0042b36f
add esp, 8
cmp eax, edi
je 0x4114c4
add eax, 0x10
push eax
call fcn.0042b2dc
mov edx, dword [ebp + 8]
add esp, 4
cmp eax, edx
jle 0x4114c4
mov word [esp + 0x328], di
push edx
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x32e]
rep stosd dword es:[edi], eax
push 0x43e9d0
lea edx, [esp + 0x330]
push 0x208
push edx
stosw word es:[edi], ax
call fcn.00409b90
lea eax, [esp + 0x338]
push eax
push esi
call fcn.0042b36f
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4114c4
push 0xd
push edi
call fcn.0042b3cd
add esp, 8
test eax, eax
jne 0x411497
push 0xa
push edi
call fcn.0042b3cd
add esp, 8
test eax, eax
je 0x41149c
mov word [eax], 0
lea ecx, [esp + 0x328]
push ecx
call fcn.0042a3e2
add esp, 4
lea eax, [edi + eax*2]
mov edi, dword [esp + 0x10]
push eax
add edi, 0x44
push 0x208
push edi
call fcn.00408090
mov ebx, edi
push esi
call fcn.0042969a
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x38]
inc edi
test eax, eax
je 0x411222
mov ecx, dword [eax + 4]
test ecx, ecx
mov esi, 1
je 0x411222
lea esp, [esp]
cmp esi, dword [ebx + 0x40]
jge 0x411222
mov edx, dword [eax + esi*4]
push edx
call fcn.00405450
add esp, 4
cmp eax, 0xffffffff
jne 0x411545
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + esi*4]
mov ax, word [ecx]
cmp ax, 0x2f
je 0x411548
cmp ax, 0x5c
je 0x411548
cmp ax, 0x2d
je 0x411548
dec edi
je 0x41155f
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + esi*4 + 4]
inc esi
test ecx, ecx
jne 0x411510
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0x38]
mov eax, dword [edx + esi*4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4