Function at 0x470eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
push 0x5a42
push eax
mov dword [ebp - 0x5c], eax
movlpd qword [ebp - 0x64], xmm0
call fcn.00474410
add esp, 8
test eax, eax
jne 0x47120b
push dword [section..data]
call fcn.00499907
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
je 0x47120b
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00492fd0
mov ebx, dword [ebp - 0x68]
mov edi, eax
add esp, 8
test edi, edi
jne 0x470fc6
push dword [ebp - 0x50]
lea eax, [ebx + 2]
push eax
mov eax, dword [ebp - 0x5c]
push dword [eax + 8]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00470dd0
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x470fc6
push dword [section..data]
mov esi, dword [ebp - 0x48]
push ebx
push esi
call fcn.00470cb0
mov edi, eax
add esp, 0xc
test edi, edi
js 0x470fc6
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x58], eax
nop
mov esi, dword [section..data]
sub esi, edi
mov edi, esi
je 0x470fd2
push edi
mov edi, dword [ebp - 0x5c]
push ebx
push edi
call fcn.00474580
add esp, 0xc
cmp eax, esi
jne 0x471169
mov ecx, dword [ebp - 0x58]
mov eax, esi
push dword [section..data]
mov esi, dword [ebp - 0x48]
cdq
add ecx, eax
mov eax, dword [ebp - 0x54]
push ebx
adc eax, edx
mov dword [ebp - 0x58], ecx
push esi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], eax
call fcn.00470cb0
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x470f70
jmp 0x470fd5
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
mov esi, dword [ebp - 0x48]
cmp edi, 0xffffffff
je 0x470fe2
test edi, edi
jne 0x47117a
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x34]
jne 0x47119e
mov eax, dword [esi + 0x10]
xor edi, edi
sub eax, dword [esi + 0x14]
push eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x18]
add eax, dword [esi + 0x14]
push eax
push ebx
call fcn.00493080
mov eax, dword [ebp - 0x4c]
add esp, 0xc
cmp eax, 2
jae 0x471140
mov esi, 2
lea edx, [eax + ebx]
mov ecx, 2
mov dword [ebp - 0x4c], edx
sub ecx, eax
sub esi, eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
jns 0x47104d
call fcn.004a4801
or esi, 0xffffffff
mov dword [eax], 9
jmp 0x471126
test edx, edx
jne 0x471064
call fcn.004a4801
or esi, 0xffffffff
mov dword [eax], 0xe
jmp 0x471126
cmp esi, dword [section..data]
jbe 0x47107f
call fcn.004a4801
or esi, 0xffffffff
mov dword [eax], 7
jmp 0x471126
mov eax, dword [0x540a10]
test eax, eax
je 0x47109f
cmp dword [eax], edi
je 0x47109f
call fcn.004a4801
or esi, 0xffffffff
mov dword [eax], 4
jmp 0x471126
cmp ecx, dword [0x4f2004]
jne 0x4710da
mov ecx, dword [0x4f9dd0]
mov edx, dword [0x4f9dcc]
lea eax, [ecx + esi]
cmp eax, edx
jbe 0x4710be
mov esi, edx
sub esi, ecx
mov eax, dword [0x4f9dc8]
push esi
add eax, ecx
push eax
push dword [ebp - 0x4c]
call fcn.00493080
add esp, 0xc
add dword [0x4f9dd0], esi
jmp 0x4710f4
mov eax, dword [0x4f9de0]
push esi
push edx
push ecx
test eax, eax
je 0x4710ea
call eax
jmp 0x4710ef
call fcn.004a6072
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x471126
mov ecx, dword [0x540a08]
mov eax, esi
cdq
add ecx, eax
mov eax, dword [0x540a0c]
mov dword [0x540a08], ecx
adc eax, edx
mov edx, dword [0x4f9dd8]
mov dword [0x540a0c], eax
test edx, edx
je 0x471126
push eax
push ecx
call edx
add esp, 8
cmp esi, dword [ebp - 0x6c]
jne 0x4711c2
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 2
mov eax, 0x5a42
cmp word [ebx], ax
jne 0x4711c2
push dword [esi + 0x3c]
call fcn.004998ec
push esi
call fcn.004998ec
mov eax, dword [ebp - 0x4c]
add esp, 8
add eax, 0xfffffffe
mov dword [ebp - 0x50], eax
jmp 0x470f07
cmp eax, 0xffffffe4
jne 0x471173
mov edi, dword [edi + 0x20]
jmp 0x4711c2
mov edi, 0xfffffffc
jmp 0x4711c2
mov eax, dword [0x4f9dd4]
push edi
push 0x4bcca0
test eax, eax
je 0x47118d
call eax
jmp 0x4711bf
call fcn.00426280
push 0xa
call fcn.004a4961
add esp, 0xc
jmp 0x4711c2
mov eax, dword [0x4f9dd4]
push str._nError:_CRC_error
test eax, eax
je 0x4711b3
call eax
add esp, 4
jmp 0x4711c2
call fcn.00426280
push 0xa
call fcn.004a4961
add esp, 8
mov esi, dword [ebp - 0x48]
push dword [esi + 0x3c]
call fcn.004998ec
push esi
call fcn.004998ec
push ebx
call fcn.004998ec
add esp, 0xc
test edi, edi
je 0x4711f4
mov eax, edi
cdq
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00491940
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
or edx, eax
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret