Function at 0x649ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f962f
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x766480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], ecx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x3c]
mov edi, dword [ebp + 8]
push esi
push 1
push 0x20
push eax
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x88], esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [ebp - 0x3c]
add esp, 0x10
mov ecx, dword [edi + 8]
mov dword [edi + 0x210], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x214], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x218], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x21c], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0xc], eax
test ecx, ecx
je 0x649f9b
push fcn.00648160
push dword [ecx - 4]
lea esi, [ecx - 4]
mov dword [ebp - 4], 0
push 0x240
push ecx
call fcn.006dff8b
mov eax, dword [esi]
lea eax, [eax + eax*8]
shl eax, 6
add eax, 4
push eax
push esi
call fcn.006e00a0
mov eax, dword [ebp - 0x38]
add esp, 8
mov esi, dword [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jle 0x64a039
mov ebx, dword [edi + 0xc]
xor ecx, ecx
mov eax, ebx
mov dword [ebp - 0x7c], ebx
mov edx, 0x240
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x64a001
push fcn.00648160
push fcn.006497c0
push ebx
mov dword [eax], ebx
add eax, 4
push 0x240
push eax
mov dword [ebp - 0x78], eax
call fcn.006dff12
mov eax, dword [ebp - 0x78]
jmp 0x64a003
xor eax, eax
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 8], eax
cmp dword [edi + 0xc], ebx
jle 0x64a039
xor edx, edx
mov ecx, dword [edi + 8]
lea edx, [edx + 0x240]
inc ebx
mov dword [ecx + edx - 0x240], edi
mov eax, dword [edi + 0x210]
mov dword [ecx + edx - 0x23c], eax
cmp ebx, dword [edi + 0xc]
jl 0x64a016
cmp dword [ebp - 0x28], 1
push esi
sete bl
cmp dword [ebp - 0x24], 1
push 1
sete al
cmp dword [ebp - 0x20], 1
mov byte [edi + 0x220], al
lea eax, [edi + 0x110]
push 0x100
push eax
sete byte [ebp - 0x81]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
push 1
lea eax, [edi + 0xd0]
push 0x3c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [ebp - 0x88]
lea esi, [edi + 0x10]
push 1
push 0x40
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x30
lea eax, [edi + 0x50]
push esi
push 0
push eax
call fcn.00403838
test bl, bl
je 0x64a458
push 0x4c
call fcn.006df8c3
mov esi, eax
add esp, 4
mov dword [ebp - 0x80], esi
test esi, esi
je 0x64a134
mov byte [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
jmp 0x64a136
xor esi, esi
mov ebx, dword [ebp - 0x88]
lea eax, [ebp - 0x74]
push ebx
push 1
push 0x38
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp dword [ebp - 0x74], 1
sete al
mov byte [esi + 0x10], al
cmp dword [ebp - 0x70], 1
sete al
mov byte [esi], al
cmp dword [ebp - 0x6c], 1
sete al
mov byte [esi + 0x20], al
cmp dword [ebp - 0x68], 1
sete al
mov byte [esi + 0x30], al
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x14], eax
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x5c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x50]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x3c], eax
cmp dword [ebp - 0x44], 1
mov dword [ebp - 0x78], edx
sete al
mov byte [esi + 0x40], al
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x44], eax
test edx, edx
jle 0x64a23a
xor ecx, ecx
mov dword [ebp - 0x80], edx
mov eax, edx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x64a21a
mov ecx, dword [ebp - 0x78]
push fcn.00480f00
push 0x649700
push ecx
mov dword [eax], ecx
add eax, 4
push 0x10
push eax
mov dword [ebp - 0x78], eax
call fcn.006dff12
mov ecx, dword [ebp - 0x78]
jmp 0x64a21c
xor ecx, ecx
mov eax, dword [esi + 0x14]
push ebx
push 1
shl eax, 4
push eax
push ecx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x18], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov eax, dword [esi + 4]
mov dword [ebp - 0x78], eax
test eax, eax
jle 0x64a2c0
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov edx, 0x14
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x64a29d
mov ecx, dword [ebp - 0x78]
push fcn.00480f00
push 0x649720
push ecx
mov dword [eax], ecx
add eax, 4
push 0x14
push eax
mov dword [ebp - 0x78], eax
call fcn.006dff12
mov ecx, dword [ebp - 0x78]
jmp 0x64a29f
xor ecx, ecx
mov eax, dword [esi + 4]
push ebx
push 1
mov dword [ebp - 4], 0xffffffff
lea eax, [eax + eax*4]
mov dword [esi + 8], ecx
shl eax, 2
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x78], eax
test eax, eax
jle 0x64a343
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x64a323
mov ecx, dword [ebp - 0x78]
push fcn.00480f00
push 0x649750
push ecx
mov dword [eax], ecx
add eax, 4
push 0x10
push eax
mov dword [ebp - 0x78], eax
call fcn.006dff12
mov ecx, dword [ebp - 0x78]
jmp 0x64a325
xor ecx, ecx
mov eax, dword [esi + 0x24]
push ebx
push 1
shl eax, 4
push eax
push ecx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x28], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x78], eax
test eax, eax
jle 0x64a3c6
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x64a3a6
mov ecx, dword [ebp - 0x78]
push fcn.00480f00
push 0x649790
push ecx
mov dword [eax], ecx
add eax, 4
push 8
push eax
mov dword [ebp - 0x78], eax
call fcn.006dff12
mov ecx, dword [ebp - 0x78]
jmp 0x64a3a8
xor ecx, ecx
mov eax, dword [esi + 0x34]
push ebx
push 1
shl eax, 3
push eax
push ecx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x38], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x78], eax
test eax, eax
jle 0x64a449
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov edx, 0x40
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x64a429
mov ecx, dword [ebp - 0x78]
push fcn.00480f00
push 0x649770
push ecx
mov dword [eax], ecx
add eax, 4
push 0x40
push eax
mov dword [ebp - 0x78], eax
call fcn.006dff12
mov ecx, dword [ebp - 0x78]
jmp 0x64a42b
xor ecx, ecx
mov eax, dword [esi + 0x44]
push ebx
push 1
shl eax, 6
push eax
push ecx
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x48], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [edi + 0x224], esi
mov byte [edi + 0x228], 1
jmp 0x64a45e
mov ebx, dword [ebp - 0x88]
cmp byte [ebp - 0x81], 0
je 0x64a6e8
push 0x10
call fcn.006df8c3
mov esi, eax
add esp, 4
mov dword [ebp - 0x80], esi
test esi, esi
je 0x64a49b
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
jmp 0x64a49d
xor esi, esi
push ebx
push 1
lea eax, [ebp - 0x90]
push 8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [ebp - 0x90]
add esp, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x8c]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x64a556
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov edx, 0x110
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.006dff04
mov ecx, eax
add esp, 4
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 4], 7
test ecx, ecx
je 0x64a532
mov eax, dword [ebp - 0x78]
push fcn.00480f00
push 0x649a70
push eax
mov dword [ecx], eax
add ecx, 4
push 0x110
push ecx
mov dword [ebp - 0x78], ecx
call fcn.006dff12
mov ecx, dword [ebp - 0x78]
jmp 0x64a534
xor ecx, ecx
mov dword [esi + 4], ecx
imul eax, dword [ebp - 0x90], 0x110
push ebx
push 1
mov dword [ebp - 4], 0xffffffff
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x64a6db
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.006dff04
mov ecx, eax
add esp, 4
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 4], 8
test ecx, ecx
je 0x64a5c2
mov eax, dword [ebp - 0x78]
push 0x648310
push 0x649700
push eax
mov dword [ecx], eax
add ecx, 4
push 0x10
push ecx
mov dword [ebp - 0x78], ecx
call fcn.006dff12
mov eax, dword [ebp - 0x78]
jmp 0x64a5c4
xor eax, eax
mov dword [esi + 0xc], eax
cmp dword [ebp - 0x8c], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x78], 0
jle 0x64a6db
mov edi, dword [ebp - 0x88]
xor ebx, ebx
nop word [eax + eax]
push edi
push 1
lea eax, [ebp - 0x1c]
push 0xc
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [esi + 0xc]
add esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [ebx + ecx], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebx + ecx + 4], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [ebp - 0x14]
mov dword [ebx + ecx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x64a6b9
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov edx, 0x10c
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.006dff04
mov ecx, eax
add esp, 4
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 4], 9
test ecx, ecx
je 0x64a68e
mov eax, dword [ebp - 0x7c]
push fcn.00480f00
push 0x6495f0
push eax
mov dword [ecx], eax
add ecx, 4
push 0x10c
push ecx
mov dword [ebp - 0x7c], ecx
call fcn.006dff12
mov ecx, dword [ebp - 0x7c]
jmp 0x64a690
xor ecx, ecx
mov eax, dword [esi + 0xc]
push edi
push 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + eax + 8], ecx
imul eax, dword [ebp - 0x14], 0x10c
push eax
mov eax, dword [esi + 0xc]
push dword [ebx + eax + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov eax, dword [ebp - 0x78]
add ebx, 0x10
inc eax
mov dword [ebp - 0x78], eax
cmp eax, dword [ebp - 0x8c]
jl 0x64a5f0
mov edi, dword [ebp - 0x94]
mov ebx, dword [ebp - 0x88]
mov dword [edi + 0x22c], esi
mov byte [edi + 0x229], 1
mov eax, dword [edi + 0xc]
xor esi, esi
test eax, eax
jle 0x64a724
xor ecx, ecx
mov dword [ebp - 0x78], ecx
cmp esi, eax
jge 0x64a701
mov eax, dword [edi + 8]
add eax, ecx
jmp 0x64a703
xor eax, eax
mov ecx, dword [ebp - 0x98]
push ebx
push eax
call fcn.00649ed0
mov ecx, dword [ebp - 0x78]
inc esi
mov eax, dword [edi + 0xc]
add ecx, 0x240
mov dword [ebp - 0x78], ecx
cmp esi, eax
jl 0x64a6fa
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 8