Function at 0x40a010
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x20], eax
xor edi, edi
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], edi
mov esi, 0x6347f8
jmp 0x40a036
mov eax, dword [esp + 0x20]
mov cl, byte [esi - 0x20]
lea ebp, [esi - 0x20]
cmp cl, 3
jne 0x40a236
mov edx, eax
xor ecx, ecx
sub edx, dword [esi - 0x14]
mov cx, word [esi - 0x1c]
cmp edx, ecx
jb 0x40a236
mov dword [esi - 0x14], eax
mov eax, dword [esi - 0xc]
cmp eax, edi
mov dword [esp + 0x18], edi
jne 0x40a07c
mov eax, dword [esi - 0x18]
mov ecx, dword [esi - 8]
lea ebx, [eax + ecx]
mov dword [esp + 0x10], ebx
add ebx, 0x10
inc word [esi - 0x1a]
jmp 0x40a0f7
mov edx, dword [esi - 0xc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
lea eax, [esp + 0x2c]
push 0x10
push eax
call edi
add esp, 0x10
cmp word [esp + 0x2a], 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ecx
jbe 0x40a0c7
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
push edx
call fcn.004225e0
mov ecx, dword [esp + 0x28]
mov ebx, eax
mov eax, dword [esi - 0xc]
add ecx, 0xfffffff0
push eax
push 1
push ecx
push ebx
call edi
add esp, 0x14
inc word [esi - 0x1a]
mov ax, word [esi - 0x1a]
cmp ax, word [esi - 0x1e]
jne 0x40a0f7
mov edx, dword [esi - 0xc]
push 0
push 0x80
push edx
mov word [esi - 0x1a], 0
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
cmp word [eax + 4], 0xf1fa
jne 0x40a1d4
xor edi, edi
cmp word [eax + 6], di
mov dword [esp + 0x1c], edi
jbe 0x40a1d6
xor eax, eax
mov ax, word [ebx + 4]
add eax, 0xfffffffc
cmp eax, 0xc
ja case.0x40a129.5
jmp dword [eax*4 + 0x40a254]
lea eax, [ebx + 6]
push eax
push ebp
call fcn.0040a290
jmp 0x40a1b2
mov ecx, dword [ebx]
lea eax, [ebx + 6]
lea edx, [ecx + ebx - 1]
push edx
push eax
push ebp
call fcn.0040a340
add esp, 0xc
jmp case.0x40a129.5
mov edx, dword [esi]
movsx ecx, word [edx + 4]
movsx eax, word [edx + 2]
imul ecx, eax
mov edi, dword [edx + 8]
mov edx, ecx
or eax, 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp case.0x40a129.5
lea edi, [ebx + 6]
push edi
call fcn.00441df0
push edi
push ebp
mov word [ebx + 4], 0xb
call fcn.0040a290
add esp, 0xc
jmp case.0x40a129.5
lea eax, [ebx + 6]
push eax
push ebp
call fcn.0040a430
jmp 0x40a1b2
lea ecx, [ebx + 6]
push ecx
push ebp
call fcn.0040a540
jmp 0x40a1b2
lea edx, [ebx + 6]
push edx
push ebp
call fcn.0040a610
add esp, 8
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
add ebx, eax
mov eax, dword [esp + 0x1c]
xor ecx, ecx
inc eax
mov cx, word [edx + 6]
mov dword [esp + 0x1c], eax
cmp eax, ecx
jl 0x40a117
xor edi, edi
cmp dword [esi - 0xc], edi
jne 0x40a20a
mov ax, word [esi - 0x1a]
cmp ax, word [esi - 0x1e]
jbe 0x40a1fc
mov ecx, dword [esi - 8]
mov eax, 1
mov word [esi - 0x1a], ax
mov dword [esi - 0x18], edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [esi - 0x18]
mov eax, dword [edx]
add ecx, eax
mov dword [esi - 0x18], ecx
cmp dword [esp + 0x18], edi
je 0x40a236
mov eax, dword [esi + 4]
cmp eax, 2
jne 0x40a224
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00409f30
jmp 0x40a233
cmp eax, 1
jne 0x40a236
mov edx, dword [esp + 0x14]
push edx
call fcn.00409f70
add esp, 4
mov eax, dword [esp + 0x14]
add esi, 0x2c
inc eax
cmp eax, 0xa
mov dword [esp + 0x14], eax
jl 0x40a032
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret