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

Disassembly:
sub esp, 0x218
mov eax, dword [0x419058]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402899
push 0
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [esi + 4]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x118]
push 0x104
push eax
call fcn.004061c6
push 0x41a328
call fcn.004062d6
mov edi, dword [esi]
mov ecx, dword [esi + 4]
lea edx, [edi + ecx - 4]
add esp, 0xc
cmp edi, edx
mov byte [esp + 0xa], 1
mov byte [esp + 0xb], 0
jae 0x40286e
push ebx
push ebp
jmp 0x402690
mov ecx, dword [edi]
test ecx, ecx
je 0x40286c
add edi, 4
xor eax, eax
test ecx, ecx
jbe 0x4026b3
mov dl, byte [edi]
mov byte [esp + eax + 0x20], dl
add eax, 1
add edi, 1
cmp eax, ecx
jb 0x4026a3
mov byte [esp + eax + 0x20], 0
mov ebp, dword [edi]
add edi, 4
mov ebx, edi
add edi, ebp
push 0x110
mov dword [esp + 0x1c], edi
call fcn.00405c2e
add esp, 4
test eax, eax
je 0x4026e3
mov ecx, eax
call fcn.00402270
mov dword [esp + 0x14], eax
jmp 0x4026eb
mov dword [esp + 0x14], 0
lea eax, [esp + 0x20]
push eax
call fcn.00406ea5
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
mov ecx, eax
sub edx, ecx
add esp, 4
add edx, 8
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402707
mov eax, dword [esp + 0x14]
mov dword [eax + 0x108], ebx
mov dword [eax + 0x10c], ebp
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x40272f
mov dword [esi + 8], eax
jmp 0x402735
push eax
call fcn.004022c0
cmp dword [esi + 0xc], 1
jne 0x402763
cmp byte [esp + 0x12], 1
jne 0x402841
lea edx, [esp + 0x20]
push str.compress.dll
push edx
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x402780
mov byte [esp + 0x13], 1
jmp 0x402780
push ebp
push ebx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00402510
cmp byte [esp + 0x12], 1
mov ebx, dword [esp + 0x18]
jne 0x402841
lea ecx, [esp + 0x20]
push str.compress.dll
push ecx
call fcn.0041163b
add esp, 8
test eax, eax
jne 0x402841
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.decompress_block
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 4]
sub ecx, ebp
push ecx
push ebx
call eax
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x402859
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov edi, dword [esi + 8]
test edi, edi
mov ebp, eax
je 0x4027fc
mov ecx, edi
call fcn.00402290
push edi
call fcn.004062d1
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi]
test eax, eax
je 0x402809
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
push 0
mov dword [esi + 4], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esi + 4]
push ecx
push ebx
push eax
mov dword [esi], eax
call fcn.004068f0
mov edi, dword [esi]
add esp, 0xc
test ebx, ebx
je 0x402832
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402841
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [edx + eax - 4]
cmp edi, ecx
mov byte [esp + 0x12], 0
jb 0x402690
jmp 0x40286c
mov eax, dword [esi]
test eax, eax
je 0x40286c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi], 0
pop ebp
pop ebx
lea edx, [esp + 0x118]
push edx
call fcn.004062d6
add esp, 4
cmp byte [esp + 0xb], 0
je 0x40289d
push 0
push str.Error
push str.Cannot_Install_Compressed_Files
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x40289f
mov al, 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.00405cae
add esp, 0x218
ret 4