Function at 0x4adbd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5319db
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
cmp eax, edi
je 0x4addfb
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push eax
mov eax, dword [0x659a18]
push eax
call ebx
mov ecx, dword [0x659a18]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0x648
push esi
call ebp
mov eax, dword [esi]
mov ecx, dword [0x659a4c]
add esp, 0x1c
test eax, ecx
jne 0x4adc35
mov dword [esi + 0x334], edi
mov ecx, dword [esi + 0x334]
mov dword [esi + 0x640], edi
cmp ecx, edi
mov dword [esi + 0x644], edi
jbe 0x4adc93
shr eax, 0xc
test al, 0xf
jle 0x4adc60
mov edx, dword [esp + 0x24]
mov ecx, esi
push edx
call fcn.004ae190
jmp 0x4adc93
lea eax, [ecx*4]
push eax
call fcn.00470b90
mov ecx, dword [esi + 0x334]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x640], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
mov eax, dword [0x659a54]
mov ecx, dword [esi]
test eax, ecx
je 0x4adce1
cmp dword [esi + 0x348], edi
jle 0x4adce1
mov ecx, dword [esi + 0x34c]
mov edx, dword [0x659a18]
push edi
push ecx
push edx
call ebx
mov eax, dword [esi + 0x348]
push eax
call fcn.00470b90
mov edx, dword [esi + 0x348]
mov dword [esi + 0x34c], eax
mov ecx, dword [0x659a18]
push ecx
push edx
push 1
push eax
call ebp
add esp, 0x20
jmp 0x4adced
mov dword [esi + 0x348], edi
mov dword [esi + 0x34c], edi
cmp dword [esi + 0x28], edi
jle 0x4add77
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x4add77
push edi
push eax
mov eax, dword [0x659a18]
push eax
call ebx
mov ecx, dword [esi + 0x28]
shl ecx, 2
push ecx
call fcn.00470b90
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x2c], eax
mov edx, dword [0x659a18]
push edx
push ecx
push 4
push eax
call ebp
mov eax, dword [esi + 0x28]
add esp, 0x20
test eax, eax
jle 0x4add75
or ebx, 0xffffffff
push 0x388
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x4add60
mov edx, dword [esi + 0x2c]
mov ecx, dword [edx + edi*4]
push ecx
mov ecx, eax
call fcn.004abf60
jmp 0x4add62
xor eax, eax
mov edx, dword [esi + 0x2c]
inc edi
mov dword [esp + 0x18], ebx
mov dword [edx + edi*4 - 4], eax
mov eax, dword [esi + 0x28]
cmp edi, eax
jl 0x4add33
xor edi, edi
lea ecx, [esi + 0x360]
xor eax, eax
mov dword [esi + 0x350], edi
mov dword [esi + 0x35c], edi
mov dword [ecx], eax
lea edi, [esi + 0x368]
mov dword [ecx + 4], eax
mov ecx, 0x54
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esi + 0x4b8]
rep stosd dword es:[edi], eax
mov ecx, 0x20
lea edi, [esi + 0x538]
rep stosd dword es:[edi], eax
mov al, byte [esi]
xor edi, edi
test al, 0x10
mov dword [esi + 0x638], edi
mov dword [esi + 0x63c], edi
je 0x4addf0
push 0x24
call fcn.00470250
add esp, 4
cmp eax, edi
je 0x4adde8
lea edx, [esi + 0x18]
push 1
push edx
mov ecx, eax
call fcn.00489020
jmp 0x4addea
xor eax, eax
mov dword [esi + 0x638], eax
mov eax, dword [0x6b5f20]
mov dword [esi + 0x354], eax
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8