Function at 0x474a70
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f19ce
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
lea esi, [esp + 0x40]
call fcn.004741f0
mov dword [esp + 0xd8], 0
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x474ace
lea eax, [esp + 0x44]
push 0x5092e4
push eax
call fcn.004c97af
mov ebx, eax
add esp, 8
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x474e11
push 2
push 0
push ebx
call fcn.004cbfa2
add esp, 0xc
push ebx
call fcn.004cbeaa
mov ecx, eax
imul ecx, ecx, 0x6e
mov eax, 0x51eb851f
imul ecx
add esp, 4
sar edx, 5
push 0
mov eax, edx
shr eax, 0x1f
push 0
push ebx
lea ebp, [edx + eax + 0xa]
call fcn.004cbfa2
lea ecx, [ebp + 0x64]
add esp, 0xc
push ecx
call fcn.004c85fa
mov edi, eax
add esp, 4
test edi, edi
je 0x474e08
push ebp
push 0
push edi
call fcn.004d1df0
add esp, 0xc
push ebx
push ebp
push 1
push edi
call fcn.004c9ab9
add esp, 0x10
lea esi, [esp + 0x5c]
call fcn.004836b0
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0xdc], 1
call fcn.00470d40
mov byte [esp + 0xd8], 2
lea ecx, [esp + 0x18]
lea eax, [edi + ebp]
xor esi, esi
push ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], eax
mov byte [esp + 0xcc], 1
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
call fcn.00483760
call fcn.004634c0
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
xor ebp, ebp
sar eax, 2
cmp eax, esi
jbe 0x474de5
jmp 0x474bd7
xor esi, esi
cmp ebp, eax
jb 0x474be0
call fcn.004c96d9
mov edx, dword [esp + 0x28]
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax + 8]
push ecx
call fcn.004742a0
mov edi, eax
add esp, 4
cmp edi, esi
je 0x474dd1
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x28]
sar edx, 2
cmp ebp, edx
jb 0x474c11
call fcn.004c96d9
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + ebp*4]
cmp dword [ecx + 0x18], esi
jne 0x474dd1
mov byte [edi + 0x14c], 0
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x28]
sar edx, 2
cmp ebp, edx
jb 0x474c3c
call fcn.004c96d9
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + ebp*4]
cmp dword [ecx + 0x10], esi
setne dl
mov byte [edi + 0x14d], dl
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 2
cmp ebp, eax
jb 0x474c63
call fcn.004c96d9
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + ebp*4]
cmp dword [edx + 0x20], esi
setne al
mov byte [edi + 0x14f], al
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
sar ecx, 2
cmp ebp, ecx
jb 0x474c8a
call fcn.004c96d9
mov edx, dword [esp + 0x28]
mov eax, dword [edx + ebp*4]
cmp dword [eax + 0x28], esi
setne cl
mov byte [edi + 0x150], cl
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x28]
sar edx, 2
cmp ebp, edx
jb 0x474cb1
call fcn.004c96d9
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x30]
mov dword [edi + 0x178], edx
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 2
cmp ebp, eax
jb 0x474cd5
call fcn.004c96d9
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 0x38]
mov dword [edi + 0x17c], eax
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
sar ecx, 2
cmp ebp, ecx
jb 0x474cf9
call fcn.004c96d9
mov edx, dword [esp + 0x28]
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax + 0x40]
mov dword [edi + 0x180], ecx
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x28]
sar edx, 2
cmp ebp, edx
jb 0x474d1d
call fcn.004c96d9
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x48]
mov dword [edi + 0x184], edx
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
sar eax, 2
cmp ebp, eax
jb 0x474d41
call fcn.004c96d9
cmp byte [edi + 0x14d], 0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 0x50]
mov dword [edi + 0x188], eax
mov dword [esp + 0x14], esi
je 0x474d66
mov dword [esp + 0x14], 1
cmp byte [edi + 0x14c], 0
je 0x474d73
inc dword [esp + 0x14]
cmp dword [esp + 0x14], esi
jle 0x474dd1
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x24]
xor ebx, ebx
sar eax, 2
mov dword [esp + 0x3c], eax
test eax, eax
jbe 0x474dcd
lea esp, [esp]
mov ecx, dword [edi + 0x28]
sub ecx, dword [edi + 0x24]
sar ecx, 2
cmp ebx, ecx
jb 0x474da2
call fcn.004c96d9
mov edx, dword [edi + 0x24]
mov esi, dword [edx + ebx*4]
cmp esi, 0xf4240
je 0x474dc6
cmp esi, 0xf4241
je 0x474dc6
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x3c]
call fcn.00463660
inc ebx
cmp ebx, dword [esp + 0x3c]
jb 0x474d90
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
inc ebp
sar eax, 2
cmp ebp, eax
jb 0x474bd5
mov esi, dword [esp + 0x38]
call fcn.00463710
lea ecx, [esp + 0x18]
mov byte [esp + 0xd8], 1
call fcn.00470da0
lea eax, [esp + 0x5c]
call fcn.00483700
push ebx
call fcn.004c9c66
add esp, 4
cmp dword [esp + 0x58], 8
jb 0x474e25
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004c8f08
add esp, 0xc8
ret