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

Disassembly:
push 0xffffffffffffffff
push 0x5e08c1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x658aa8]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x23c]
mov eax, dword [ebp]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x1c], edi
cmp eax, ebx
je 0x46645a
push eax
call fcn.0049b045
add esp, 4
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x46646a
push eax
call fcn.0049b045
add esp, 4
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov ecx, dword [0x664b30]
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push ecx
lea esi, [esp + 0x28]
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], bl
call fcn.00428e20
mov dword [esp + 0x234], ebx
mov eax, dword [0x664b78]
cmp byte [eax], bl
jne 0x4665cd
cmp edi, ebx
je 0x4664b2
push edi
mov edx, esi
push edx
call fcn.00428d20
mov eax, dword [esp + 0x20]
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x466518
push 0x63
lea ecx, [ebp + 0x10]
push str.Error_opening_file
push ecx
call fcn.004f5a31
add esp, 0xc
push 0x31
push 0x637908
add ebp, 0x74
push ebp
call fcn.004f5a31
add esp, 0xc
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x466511
push eax
call fcn.0049b045
add esp, 4
xor al, al
jmp 0x466833
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x466558
push 0x63
push str.File_is_empty
lea eax, [ebp + 0x10]
push eax
call fcn.004f5a31
add esp, 0xc
push 0x31
push 0x637908
add ebp, 0x74
push ebp
call fcn.004f5a31
add esp, 0xc
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
jmp 0x466506
cmp esi, 0x400000
jbe 0x46656d
push 0x63
push str.File_too_large
lea edx, [ebp + 0x10]
push edx
jmp 0x466531
push esi
mov dword [esp + 0x1c], ebx
call fcn.0048fcef
add esp, 4
push ebx
mov ebx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push esi
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], esi
je 0x4665b8
push edi
call fcn.0048fcfa
add esp, 4
mov esi, ebp
call fcn.00466230
push 0x63
push str.Could_not_read_file
jmp 0x46652d
push esi
push edi
push ebp
call fcn.00466300
push edi
mov bl, al
call fcn.0048fcfa
jmp 0x466819
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00428d20
cmp byte [0x664959], bl
je 0x4665e8
mov edi, dword [0x66bde8]
jmp 0x466655
mov edx, dword [0x664bc0]
push 0xffffffffffffffff
lea ecx, [esp + 0xb8]
push edx
lea esi, [esp + 0xb8]
mov dword [esp + 0xb8], ecx
mov byte [esp + 0xbc], bl
call fcn.00428e20
mov byte [esp + 0x234], 1
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0xb0]
push 2
push ebx
push eax
call fcn.004499d0
mov edi, eax
mov byte [esp + 0x240], bl
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc0]
add esp, 0xc
cmp eax, ecx
je 0x466655
push eax
call fcn.0049b045
add esp, 4
cmp edi, ebx
jne 0x466669
push 0x63
push str.Error_opening_zip_file
lea edx, [ebp + 0x10]
push edx
jmp 0x466531
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
lea edx, [esp + 0x70]
push eax
lea esi, [esp + 0x70]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x70], edx
mov byte [esp + 0x74], bl
call fcn.00428e20
mov ecx, esi
push ecx
mov edx, 0x637a14
mov ecx, 0x6350f8
mov byte [esp + 0x238], 2
call fcn.00429240
cmp dword [edi], 1
je 0x4666b4
mov dword [0x66be20], 0x80000
jmp 0x4666d7
mov ecx, dword [esp + 0x68]
mov esi, dword [edi + 4]
lea edx, [esp + 0xf8]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004497d0
mov dword [0x66be20], eax
cmp eax, ebx
je 0x46671b
push 0x63
push str.Could_not_find_ziped_file
lea edx, [ebp + 0x10]
push edx
call fcn.004f5a31
add esp, 0xc
push 0x31
push 0x637908
add ebp, 0x74
push ebp
call fcn.004f5a31
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x78]
add esp, 0xc
cmp eax, ecx
je 0x4664fc
push eax
call fcn.0049b045
add esp, 4
jmp 0x4664fc
mov eax, dword [esp + 0x220]
cmp eax, ebx
jne 0x466733
push 0x63
push str.File_is_empty
lea eax, [ebp + 0x10]
push eax
jmp 0x4666e2
cmp eax, 0x400000
jbe 0x466747
push 0x63
push str.File_too_large
lea eax, [ebp + 0x10]
push eax
jmp 0x4666e2
push eax
call fcn.0048fcef
mov ecx, dword [esp + 0x224]
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
push esi
push eax
mov eax, edi
call fcn.00449ae0
add esp, 8
cmp eax, ebx
je 0x4667dc
cmp eax, 0x600
je 0x4667dc
push esi
call fcn.0048fcfa
add esp, 4
cmp byte [0x664959], bl
jne 0x46678e
push edi
call fcn.00449b20
add esp, 4
push 0x63
lea ecx, [ebp + 0x10]
push str.Could_not_unzip_file
push ecx
call fcn.004f5a31
add esp, 0xc
push 0x31
push 0x637908
add ebp, 0x74
push ebp
call fcn.004f5a31
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x78]
add esp, 0xc
cmp eax, edx
je 0x46654c
push eax
call fcn.0049b045
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
add esp, 4
cmp eax, ecx
jmp 0x466506
cmp byte [0x664959], bl
jne 0x4667ed
push edi
call fcn.00449b20
add esp, 4
mov edx, dword [esp + 0x220]
push edx
push esi
push ebp
call fcn.00466300
push esi
mov bl, al
call fcn.0048fcfa
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x70]
add esp, 4
cmp eax, ecx
je 0x46681c
push eax
call fcn.0049b045
add esp, 4
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x466831
push eax
call fcn.0049b045
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00499a1c
add esp, 0x224
ret 4