Function at 0x413b30
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x102c
call fcn.00467f00
push ebx
push ebp
push esi
push edi
call fcn.00412da0
mov bl, al
call fcn.00412da0
mov byte [esp + 0x14], al
call fcn.00412da0
cmp word [0x480e72], 0
mov byte [esp + 0x10], al
mov word [0x46e24e], 0xa0
je 0x413b71
call fcn.00411c40
jmp 0x413b7b
call fcn.00411c10
and eax, 0xffff
mov dword [0x46e248], eax
call fcn.00411c90
call fcn.00411c90
call fcn.00411c90
mov ebp, eax
test bp, bp
jne 0x413ba3
push 0x401b8c
call fcn.00411b30
add esp, 4
call fcn.00411c90
movsx esi, word [0x480e70]
movsx eax, ax
shl eax, 2
mov dword [esp + 0x1c], eax
dec esi
mov eax, dword [eax + 0x47ee6c]
cmp esi, 0x1000
mov dword [esp + 0x18], eax
jle 0x413bd9
push 0x4019ec
call fcn.00411b30
add esp, 4
mov ecx, esi
xor eax, eax
mov edx, ecx
lea edi, [esp + 0x3c]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x40]
push eax
call fcn.00411bd0
test bl, 1
jne 0x413e33
mov ax, word [0x47ca5e]
inc ax
cmp ax, 0x100
mov word [0x47ca5e], ax
jl 0x413c24
push 0x401afc
call fcn.00411b30
add esp, 4
mov cx, word [0x46e250]
inc cx
movsx eax, bp
mov word [0x46e250], cx
mov word [0x46e24c], cx
movsx ecx, cx
lea eax, [eax + eax*2]
shl eax, 2
lea ecx, [ecx + ecx*2]
shl ecx, 2
lea edx, [eax + 0x46e258]
mov dword [esp + 0x20], edx
lea edi, [ecx + 0x46e258]
mov ebp, dword [edx]
mov dword [edi], ebp
mov ebp, dword [edx + 4]
mov dword [edi + 4], ebp
mov edx, dword [edx + 8]
mov dword [edi + 8], edx
mov dl, byte [esp + 0x10]
test dl, dl
je 0x413c88
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x469098]
jmp 0x413c8e
mov ecx, dword [ecx + 0x46e25c]
mov edx, dword [eax + 0x46e260]
mov edi, dword [esp + 0x20]
or dh, 0x10
movsx eax, word [edi]
push edx
push esi
push 0
push ecx
mov ecx, dword [eax*4 + 0x47ee6c]
push ecx
call fcn.004130c0
mov dx, word [0x46e24c]
push esi
movsx ecx, dx
mov word [0x4695e0], dx
lea edx, [esp + 0x40]
lea ecx, [ecx + ecx*2]
push edx
mov word [ecx*4 + 0x46e25a], ax
mov ecx, dword [0x46e248]
push ecx
push eax
call fcn.00412af0
test bl, 2
je 0x413cf1
push 0x401b70
call fcn.00411b30
add esp, 4
movsx eax, word [0x46e24c]
movsx ecx, word [edi]
lea edx, [eax + eax*2]
and bl, 4
push 1
or bl, 8
mov ax, word [edx*4 + 0x46e25a]
mov edx, dword [ecx*4 + 0x47ee6c]
push 3
push eax
shr bl, 2
push 0
push edx
movzx bx, bl
call fcn.00412030
movsx ecx, word [0x47ca5e]
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [ecx*4 + 0x47c658], eax
mov eax, dword [0x480ec4]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
push eax
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], edx
push 1
push ecx
mov word [esp + 0x44], dx
mov dword [esp + 0x34], esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x413d7a
push 0x4018f0
call fcn.00411b30
add esp, 4
mov edx, dword [0x480ec4]
push 1
push 0xffffffffffffffff
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
je 0x413d9f
push 0x401b58
call fcn.00411b30
add esp, 4
mov eax, dword [esp + 0x38]
and eax, 0xff
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
and eax, 0xff
cmp eax, 0x30
ja case.0x413dc2.4
xor ecx, ecx
mov cl, byte [eax + 0x413e80]
jmp dword [ecx*4 + 0x413e6c]
mov al, 1
jmp 0x413ddb
mov al, 2
jmp 0x413ddb
mov al, 3
jmp 0x413ddb
mov al, 4
jmp 0x413ddb
xor al, al
mov byte [esp + 0x32], al
movsx eax, word [0x46e24c]
lea edx, [eax + eax*2]
lea eax, [esp + 0x24]
push eax
mov si, word [edx*4 + 0x46e25a]
call fcn.00412170
movsx ecx, si
mov edx, dword [esp + 0x18]
push 0
push ebx
push esi
push 0
push edx
mov dword [ecx*4 + 0x46b5f4], eax
call fcn.00412030
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x47ce6c], 0xffffffff
jne 0x413e60
pop edi
pop esi
pop ebp
mov dword [ecx + 0x47ce6c], eax
pop ebx
add esp, 0x102c
ret
mov ax, word [0x4695e0]
mov edx, dword [0x46e248]
mov word [0x46e24c], ax
lea ecx, [esp + 0x3c]
movsx eax, ax
push esi
push ecx
lea eax, [eax + eax*2]
push edx
mov cx, word [eax*4 + 0x46e25a]
push ecx
call fcn.00413af0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x102c
ret