Function at 0x46a4e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
mov eax, dword [0x595c60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x444], edx
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x430], edi
je 0x46a955
cmp dword [esi], 0x43415348
jne 0x46a955
push ebx
push 0x5764e4
push eax
call fcn.0050b250
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x46a92b
push ebx
push 1
lea eax, [ebp - 0x478]
push 4
push eax
call fcn.0050aad0
add esp, 0x10
cmp eax, 1
jne 0x46a922
cmp dword [ebp - 0x478], 0x43415348
jne 0x46a922
push ebx
push eax
lea ecx, [ebp - 0x474]
push 4
push ecx
call fcn.0050aad0
add esp, 0x10
cmp eax, 1
jne 0x46a922
call fcn.0047ad20
mov dword [ebp - 0x408], eax
push ebx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call fcn.0050aad0
mov edi, eax
mov eax, dword [ebp - 0x408]
push eax
lea ecx, [ebp - 0x404]
push edi
push ecx
call fcn.00470ea0
add esp, 0x1c
cmp edi, 0x400
mov dword [ebp - 0x408], eax
je 0x46a5c0
mov edx, eax
push edx
call fcn.00470ee0
add esp, 4
cmp eax, dword [ebp - 0x474]
jne 0x46a91c
push ebx
call fcn.005098ff
mov eax, dword [ebp - 0x410]
push 0x5764e4
push eax
call fcn.0050b250
mov edi, eax
add esp, 0xc
test edi, edi
mov dword [ebp - 0x410], edi
je 0x46a93e
lea eax, [esi + 0xc]
push eax
mov dword [ebp - 0x448], eax
call fcn.00410be0
call fcn.004699f0
push edi
push 1
lea ecx, [ebp - 0x478]
push 0x30
push ecx
call fcn.0050aad0
mov eax, dword [ebp - 0x464]
mov edx, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x460]
mov edi, dword [ebp - 0x470]
mov ebx, dword [ebp - 0x46c]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x458]
mov dword [esi + 0x30], edx
mov edx, dword [ebp - 0x45c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], ecx
mov ecx, dword [ebp - 0x454]
mov dword [esi + 0x44], edx
mov edx, dword [ebp - 0x450]
lea eax, [ebp - 0x438]
push 0
push eax
mov dword [esi + 0x4c], ecx
mov dword [ebp - 0x424], edx
call fcn.00453900
lea esi, [ebp - 0x420]
call fcn.00469720
mov ecx, dword [ebp - 0x434]
mov edx, dword [ebp - 0x438]
push ebx
push edi
push ecx
push edx
call fcn.00453880
add esp, 0x2c
cmp dword [ebp - 0x424], 0
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x408], 0
jbe 0x46a8fd
mov esi, dword [ebp - 0x41c]
lea esp, [esp]
mov edi, dword [ebp - 0x410]
push edi
push 1
lea eax, [ebp - 0x4b8]
push 0x40
push eax
call fcn.0050aad0
add esp, 0x10
cmp eax, 1
jne 0x46a907
cmp dword [ebp - 0x4b8], 0x43534845
jne 0x46a907
mov eax, dword [ebp - 0x48c]
test eax, eax
mov ebx, eax
jl 0x46a907
push edi
mov edi, dword [ebp - 0x444]
push 1
push eax
push edi
call fcn.0050aad0
add esp, 0x10
cmp eax, 1
jne 0x46a907
mov eax, dword [ebp - 0x4b0]
sub eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x4ac]
sbb ecx, dword [ebp - 0x414]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ecx
js 0x46a8e2
jg 0x46a7a3
test eax, eax
jbe 0x46a8e2
lea ecx, [ebp - 0x430]
push ecx
push ebx
push edi
call dword [ebp - 0x440]
add esp, 0xc
cmp eax, 1
mov dword [ebp - 0x40c], eax
jne 0x46a8e2
push 0x40
call fcn.00507c0d
mov edx, dword [ebp - 0x430]
mov ecx, dword [ebp - 0x428]
mov ebx, eax
mov eax, dword [ebp - 0x420]
mov dword [ebx + 0x2c], edx
mov edx, dword [ebp - 0x42c]
lea edi, [ebx + 0x10]
push ecx
push edx
mov dword [edi], eax
mov dword [edi + 4], esi
call fcn.00469770
mov ecx, dword [ebp - 0x4a8]
add ecx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x4a4]
adc eax, dword [ebp - 0x414]
mov edx, dword [ebp - 0x420]
neg ecx
adc eax, 0
neg eax
lea edi, [ebx + 8]
push eax
push ecx
mov dword [edi], edx
mov dword [edi + 4], esi
call fcn.00469770
mov ecx, dword [ebp - 0x498]
add ecx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x494]
adc eax, dword [ebp - 0x414]
mov edx, dword [ebp - 0x420]
neg ecx
adc eax, 0
neg eax
lea edi, [ebx + 0x20]
push eax
push ecx
mov dword [edi], edx
mov dword [edi + 4], esi
call fcn.00469770
mov ecx, dword [ebp - 0x4a0]
add ecx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x49c]
adc eax, dword [ebp - 0x414]
mov edx, dword [ebp - 0x420]
neg ecx
adc eax, 0
neg eax
lea edi, [ebx + 0x18]
push eax
push ecx
mov dword [edi], edx
mov dword [edi + 4], esi
call fcn.00469820
mov eax, dword [ebp - 0x490]
mov dword [ebx + 0x34], eax
mov ecx, dword [ebp - 0x480]
mov dword [ebx + 0x28], ecx
mov edx, dword [ebp - 0x488]
mov dword [ebx + 0x38], edx
mov eax, dword [ebp - 0x484]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x43c]
push eax
mov dword [ebx], 0x43534845
mov dword [ebx + 0x30], eax
call fcn.0046a080
add esp, 0x28
test eax, eax
jne 0x46a8e2
push ebx
mov dword [ebx], 0xbcacb7ba
call fcn.005074d4
add esp, 4
mov eax, dword [ebp - 0x408]
add eax, 1
cmp eax, dword [ebp - 0x424]
mov dword [ebp - 0x408], eax
jb 0x46a710
mov dword [ebp - 0x40c], 1
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.00410c00
mov ebx, dword [ebp - 0x410]
add esp, 4
mov edi, dword [ebp - 0x40c]
push ebx
call fcn.005098ff
add esp, 4
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x40c]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00506c7d
mov esp, ebp
pop ebp
ret