Function at 0x4a4620
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x522378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x3c]
call fcn.004a79a0
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 0
call fcn.004a79a0
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 1
call fcn.004a76d0
mov eax, dword [esi + 8]
mov byte [esp + 0x70], 2
test eax, eax
je 0x4a4a49
mov eax, dword [esi + 4]
mov ecx, 0x58df84
push eax
call fcn.004a6e80
mov edi, eax
xor eax, eax
mov al, byte [esi + 0x51]
xor ecx, ecx
mov cx, word [esi + 0x52]
sub edi, 0x80
imul eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xa0]
cmp eax, 8
mov dword [esp + 0x24], edi
je 0x4a48ad
cmp eax, 0x18
jne 0x4a4a49
mov eax, dword [esi + 0xa8]
push 0
push 0x56c70c
push edi
lea ebx, [eax + eax*2]
lea ecx, [esp + 0x54]
mov dword [esp + 0x24], ebx
call fcn.004a77c0
test eax, eax
je 0x4a4a49
lea ecx, [esp + 0x48]
call fcn.0045cdd0
mov edx, dword [esi + 0xac]
mov ecx, dword [esi + 0xb0]
mov ebp, eax
mov eax, dword [esi + 0xa8]
push 0
push 0x18
push edx
push eax
mov dword [esp + 0x20], ebp
call fcn.004a5900
test eax, eax
je 0x4a4a49
mov ecx, dword [esi + 0xb0]
call fcn.004a5c90
lea ecx, [ebx + ebx]
mov dword [esp + 0x14], eax
push ecx
lea ecx, [esp + 0x34]
call fcn.004a79d0
test eax, eax
je 0x4a4a49
lea ecx, [esp + 0x30]
call fcn.0045cdd0
mov edx, dword [esi + 4]
push 0
push 0x80
push edx
mov ebx, eax
call fcn.004fc589
add esp, 0xc
test eax, eax
jne 0x4a4a49
mov eax, dword [esi + 4]
push eax
push 1
push edi
push ebp
call fcn.004fc194
add esp, 0x10
test eax, eax
je 0x4a4a49
push 0
push 0
lea ecx, [esp + 0x50]
call fcn.004a7960
mov ecx, dword [esi + 0xac]
mov eax, ebp
xor ebp, ebp
mov dword [esp + 0x1c], 0
mov bp, word [esi + 0x52]
test ecx, ecx
mov dword [esp + 0x2c], ebp
jbe 0x4a4845
mov ecx, dword [esp + 0x14]
add ecx, 2
mov dword [esp + 0x14], ecx
jmp 0x4a47ba
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push edi
push edx
push ecx
push eax
push ebx
mov ecx, esi
call fcn.004a4aa0
test eax, eax
mov dword [esp + 0x28], eax
je 0x4a4a49
mov eax, dword [esi + 0xa8]
xor edi, edi
test eax, eax
jbe 0x4a4816
mov eax, dword [esp + 0x14]
lea edx, [ebp + ebp]
lea ecx, [ebx + ebp*2]
sub ebp, edx
mov dl, byte [ebx + edi]
inc edi
mov byte [eax - 2], dl
mov dl, byte [ecx + ebp]
mov byte [eax - 1], dl
mov dl, byte [ecx]
mov byte [eax], dl
mov edx, dword [esi + 0xa8]
add eax, 3
inc ecx
cmp edi, edx
jb 0x4a47f3
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov ecx, esi
push edi
push 1
call fcn.004a4460
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esi + 0xac]
inc edi
mov dword [esp + 0x14], ecx
cmp edi, eax
mov dword [esp + 0x1c], edi
jb 0x4a47b2
mov ecx, dword [esi + 0xac]
dec ecx
push ecx
push 1
mov ecx, esi
call fcn.004a4460
push 1
lea ecx, [esp + 0x4c]
call fcn.004a7740
mov ecx, esi
call fcn.004a4500
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 1
call fcn.004a76f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 0
call fcn.004a79c0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call fcn.004a79c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret
mov ecx, dword [esi + 0xa8]
sub edi, 0x300
push 0
mov dword [esp + 0x1c], ecx
push 0x56c70c
push edi
lea ecx, [esp + 0x54]
call fcn.004a77c0
test eax, eax
je 0x4a4a49
lea ecx, [esp + 0x48]
call fcn.0045cdd0
mov edx, dword [esi + 0xac]
mov ecx, dword [esi + 0xb0]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xa8]
push 0x100
push 8
push edx
push eax
call fcn.004a5900
test eax, eax
je 0x4a4a49
mov ecx, dword [esi + 0xb0]
call fcn.004a5c80
mov ecx, eax
call fcn.004a7bb0
push 0x300
lea ecx, [esp + 0x40]
mov ebx, eax
call fcn.004a79d0
test eax, eax
je 0x4a4a49
lea ecx, [esp + 0x3c]
call fcn.0045cdd0
mov ecx, dword [esi + 0xb0]
mov ebp, eax
call fcn.004a5c90
mov ecx, dword [esi + 4]
push 2
push 0xfffffd00
push ecx
mov dword [esp + 0x20], eax
call fcn.004fc589
add esp, 0xc
test eax, eax
jne 0x4a4a49
mov edx, dword [esi + 4]
push edx
push 1
push 0x300
push ebp
call fcn.004fc194
add esp, 0x10
test eax, eax
je 0x4a4a49
lea eax, [ebp + 1]
lea ecx, [ebx + 1]
mov ebp, 0x100
mov dl, byte [eax + 1]
add eax, 3
mov byte [ecx + 1], dl
mov dl, byte [eax - 3]
mov byte [ecx], dl
mov dl, byte [eax - 4]
mov byte [ecx - 1], dl
add ecx, 8
dec ebp
jne 0x4a4991
mov eax, dword [esi + 4]
push 0
push 0x80
push eax
call fcn.004fc589
add esp, 0xc
test eax, eax
jne 0x4a4a49
mov ecx, dword [esi + 4]
mov ebx, dword [esp + 0x10]
push ecx
push 1
push edi
push ebx
call fcn.004fc194
add esp, 0x10
test eax, eax
je 0x4a4a49
push 0
push 0
lea ecx, [esp + 0x50]
call fcn.004a7960
mov eax, dword [esi + 0xac]
xor ebp, ebp
test eax, eax
jbe 0x4a4845
mov edx, dword [esp + 0x14]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push edi
push eax
push ecx
push ebx
push edx
mov ecx, esi
call fcn.004a4aa0
mov ebx, eax
test ebx, ebx
je 0x4a4a49
push ebp
push 1
mov ecx, esi
call fcn.004a4460
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add ecx, eax
mov eax, dword [esi + 0xac]
inc ebp
mov dword [esp + 0x14], ecx
cmp ebp, eax
jb 0x4a4a03
jmp 0x4a4845
push 1
lea ecx, [esp + 0x4c]
call fcn.004a7740
mov ecx, esi
call fcn.004a4500
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 1
call fcn.004a76f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], 0
call fcn.004a79c0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x70], 0xffffffff
call fcn.004a79c0
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret