Function at 0x403350
Capabilities:
Link many functions at runtime
Read file on windows

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
sub rsp, 0x20
call fcn.00401610
add rsp, 0x20
cmp dword [0x00409a10], 0xa
jl 0x403390
mov eax, dword [0x00409988]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x403677
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x38], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x50], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x20], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x28], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x40], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x58], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x60], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x48], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x68], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x70], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x30], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x18], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x78], rax
sub rsp, 0x20
lea rcx, [0x00405010]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add rsp, 0x20
mov rsi, rax
sub rsp, 0x20
lea rdx, [0x0040501d]
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x30]
mov qword [rcx], rax
sub rsp, 0x20
lea rdx, [0x0040502a]
mov rcx, rsi
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x70]
mov qword [rcx], rax
sub rsp, 0x20
lea rdx, str.XizoOsiz
mov rcx, rsi
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x68]
mov qword [rcx], rax
sub rsp, 0x20
lea rdx, [0x00405050]
mov rcx, rsi
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x48]
mov qword [rcx], rax
sub rsp, 0x20
lea rdx, [0x00405064]
mov rcx, rsi
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x60]
mov qword [rcx], rax
sub rsp, 0x20
lea rdx, [0x00405070]
mov rcx, rsi
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x58]
mov qword [rcx], rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x40]
mov qword [rcx], rax
mov rax, qword [rbp - 0x40]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x18]
sub rsp, 0x20
lea rdx, [0x0040507d]
lea r8, [0x00405084]
call qword [sym.imp.msvcrt.dll_fopen_s]
add rsp, 0x20
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
sub rsp, 0x20
xor edx, edx
mov r8d, 2
call sub.msvcrt.dll_fseek
add rsp, 0x20
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
sub rsp, 0x20
call sub.msvcrt.dll_ftell
add rsp, 0x20
mov esi, eax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
sub rsp, 0x20
xor edx, edx
xor r8d, r8d
call sub.msvcrt.dll_fseek
add rsp, 0x20
movsxd rax, esi
mov rcx, qword [rbp - 0x28]
mov qword [rcx], rax
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rcx]
sub rsp, 0x20
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 4
call rax
add rsp, 0x20
mov rcx, qword [rbp - 0x20]
mov qword [rcx], rax
mov rax, qword [rbp - 0x18]
mov r9, qword [rax]
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
sub rsp, 0x20
mov edx, 1
call sub.msvcrt.dll_fread
add rsp, 0x20
mov rcx, qword [rbp - 0x50]
mov qword [rcx], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov dword [rax], 0x3a45d7e4
cmp dword [0x004099f0], 0xa
jl 0x403941
mov eax, dword [0x004099c8]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x403941
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x38], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x50], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x20], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x28], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x40], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x58], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x60], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x48], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x68], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x70], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x30], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x18], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x78], rax
sub rsp, 0x20
lea rcx, [0x00405010]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add rsp, 0x20
mov rsi, rax
sub rsp, 0x20
lea rdx, [0x0040501d]
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x30]
mov qword [rcx], rax
sub rsp, 0x20
lea rdx, [0x0040502a]
mov rcx, rsi
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x70]
mov qword [rcx], rax
sub rsp, 0x20
lea rdx, str.XizoOsiz
mov rcx, rsi
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x68]
mov qword [rcx], rax
sub rsp, 0x20
lea rdx, [0x00405050]
mov rcx, rsi
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x48]
mov qword [rcx], rax
sub rsp, 0x20
lea rdx, [0x00405064]
mov rcx, rsi
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x60]
mov qword [rcx], rax
sub rsp, 0x20
lea rdx, [0x00405070]
mov rcx, rsi
call rdi
add rsp, 0x20
mov rcx, qword [rbp - 0x58]
mov qword [rcx], rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x40]
mov qword [rcx], rax
mov rax, qword [rbp - 0x40]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x18]
sub rsp, 0x20
lea rdx, [0x0040507d]
lea r8, [0x00405084]
call qword [sym.imp.msvcrt.dll_fopen_s]
add rsp, 0x20
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
sub rsp, 0x20
xor edx, edx
mov r8d, 2
call sub.msvcrt.dll_fseek
add rsp, 0x20
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
sub rsp, 0x20
call sub.msvcrt.dll_ftell
add rsp, 0x20
mov esi, eax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
sub rsp, 0x20
xor edx, edx
xor r8d, r8d
call sub.msvcrt.dll_fseek
add rsp, 0x20
movsxd rax, esi
mov rcx, qword [rbp - 0x28]
mov qword [rcx], rax
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rcx]
sub rsp, 0x20
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 4
call rax
add rsp, 0x20
mov rcx, qword [rbp - 0x20]
mov qword [rcx], rax
mov rax, qword [rbp - 0x18]
mov r9, qword [rax]
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax]
sub rsp, 0x20
mov edx, 1
call sub.msvcrt.dll_fread
add rsp, 0x20
mov rcx, qword [rbp - 0x50]
mov qword [rcx], rax
mov eax, 0x10
call fcn.00402a90
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov dword [rax], 0x3a45d7e4
jmp 0x403390
mov edi, 0x58febbf1
mov r14, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x70134ac8
nop word cs:[rax + rax]
nop dword [rax]
cmp dword [0x004099f8], 0xa
jl 0x40397a
mov eax, dword [0x004099d0]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x403960
cmp dword [0x004099c4], 0xa
jl 0x4039a0
mov eax, dword [0x00409a1c]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x4039c8
nop word cs:[rax + rax]
nop
mov rax, qword [rbp - 0x10]
cmp dword [rax], 0x504b3e99
setb byte [rbp - 4]
cmp dword [0x004099c0], 0xa
jl 0x4039e0
mov eax, dword [0x00409980]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x4039e0
mov rax, qword [rbp - 0x10]
cmp dword [rax], 0x504b3e99
setb byte [rbp - 4]
jmp 0x4039a0
cmp byte [rbp - 4], 0
je 0x403a10
cmp dword [0x004099a4], 0xa
jl 0x403a40
mov eax, dword [0x004099dc]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x403a68
jmp 0x403a40
cmp dword [0x00409a04], 0xa
jl 0x403eb0
mov eax, dword [0x004099d8]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x403ed8
jmp 0x403eb0
mov rax, qword [rbp - 0x10]
cmp dword [rax], 0x497fd826
setb byte [rbp - 1]
cmp dword [0x00409a40], 0xa
jl 0x403a80
mov eax, dword [0x00409a4c]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x403a80
mov rax, qword [rbp - 0x10]
cmp dword [rax], 0x497fd826
setb byte [rbp - 1]
jmp 0x403a40
cmp byte [rbp - 1], 0
je 0x403f1f
cmp dword [0x004099bc], 0xa
jl 0x403ab0
mov eax, dword [0x0040999c]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x403ae9
nop word cs:[rax + rax]
nop
mov rax, qword [rbp - 0x28]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x50]
mov rcx, qword [rcx]
cmp rcx, rax
mov eax, 0x49d29557
cmove eax, edi
mov rcx, qword [rbp - 0x10]
mov dword [rcx], eax
cmp dword [0x00409974], 0xa
jl 0x403b10
mov eax, dword [0x00409a20]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x403b10
mov rax, qword [rbp - 0x28]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x50]
mov rcx, qword [rcx]
cmp rcx, rax
mov eax, 0x49d29557
cmove eax, edi
mov rcx, qword [rbp - 0x10]
mov dword [rcx], eax
jmp 0x403ab0
mov eax, dword [0x00409a00]
cmp dword [0x00409a08], 0xa
setl cl
lea edx, [rax + 1]
imul edx, eax
test dl, 1
sete al
or al, cl
nop
test al, al
je 0x403b30
jmp 0x403960
cmp dword [0x00409a30], 0xa
jl 0x403b60
mov eax, dword [0x004099e4]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x403c1e
nop word [rax + rax]
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
sub rsp, 0x20
call sub.msvcrt.dll_fclose
add rsp, 0x20
mov rax, qword [rbp - 0x58]
mov rax, qword [rax]
sub rsp, 0x20
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call rax
add rsp, 0x20
mov rsi, rax
mov rax, qword [rbp - 0x48]
mov rax, qword [rax]
sub rsp, 0x20
mov rcx, rsi
xor edx, edx
call rax
mov rcx, rsi
call r14
add rsp, 0x20
mov rax, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x38]
mov qword [rcx], rax
mov rax, qword [rbp - 0x38]
mov rax, qword [rax]
mov rax, qword [rbp - 0x70]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rcx]
mov rcx, qword [rbp - 0x20]
mov rcx, qword [rcx]
mov r9, qword [rbp - 0x78]
sub rsp, 0x20
mov r8d, 0x20
call rax
add rsp, 0x20
test eax, eax
mov eax, 0x6aaf84dc
cmove eax, ebx
mov rcx, qword [rbp - 0x10]
mov dword [rcx], eax
cmp dword [0x004099a0], 0xa
jl 0x403cbf
mov eax, dword [0x00409994]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x403cbf
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
sub rsp, 0x20
call sub.msvcrt.dll_fclose
add rsp, 0x20
mov rax, qword [rbp - 0x58]
mov rax, qword [rax]
sub rsp, 0x20
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call rax
add rsp, 0x20
mov rsi, rax
mov rax, qword [rbp - 0x48]
mov rax, qword [rax]
sub rsp, 0x20
mov rcx, rsi
xor edx, edx
call rax
mov rcx, rsi
call r14
add rsp, 0x20
mov rax, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x38]
mov qword [rcx], rax
mov rax, qword [rbp - 0x38]
mov rax, qword [rax]
mov rax, qword [rbp - 0x70]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rcx]
mov rcx, qword [rbp - 0x20]
mov rcx, qword [rcx]
mov r9, qword [rbp - 0x78]
sub rsp, 0x20
mov r8d, 0x20
call rax
add rsp, 0x20
test eax, eax
mov eax, 0x6aaf84dc
cmove eax, ebx
mov rcx, qword [rbp - 0x10]
mov dword [rcx], eax
jmp 0x403b60
mov eax, dword [0x00409984]
cmp dword [0x004099d4], 0xa
setl cl
lea edx, [rax + 1]
imul edx, eax
test dl, 1
sete al
or al, cl
nop dword [rax]
test al, al
je 0x403ce0
jmp 0x403960
cmp dword [0x00409990], 0xa
jl 0x403d10
mov eax, dword [0x00409a3c]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x403d98
nop word [rax + rax]
mov rax, qword [rbp - 0x20]
mov r8, qword [rax]
mov rax, qword [rbp - 0x68]
mov rax, qword [rax]
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call rax
add rsp, 0x30
mov rsi, rax
mov rax, qword [rbp - 0x48]
mov rax, qword [rax]
sub rsp, 0x20
mov rcx, rsi
mov edx, 0xffffffff
call rax
add rsp, 0x20
mov rax, qword [rbp - 0x60]
mov rax, qword [rax]
sub rsp, 0x20
mov rcx, rsi
call rax
add rsp, 0x20
mov rax, qword [rbp - 0x10]
mov dword [rax], 0x70134ac8
cmp dword [0x004099f4], 0xa
jl 0x403e07
mov eax, dword [0x00409a38]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x403e07
mov rax, qword [rbp - 0x20]
mov r8, qword [rax]
mov rax, qword [rbp - 0x68]
mov rax, qword [rax]
sub rsp, 0x30
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call rax
add rsp, 0x30
mov rsi, rax
mov rax, qword [rbp - 0x48]
mov rax, qword [rax]
sub rsp, 0x20
mov rcx, rsi
mov edx, 0xffffffff
call rax
add rsp, 0x20
mov rax, qword [rbp - 0x60]
mov rax, qword [rax]
sub rsp, 0x20
mov rcx, rsi
call rax
add rsp, 0x20
mov rax, qword [rbp - 0x10]
mov dword [rax], 0x70134ac8
jmp 0x403d10
mov eax, dword [0x00409a28]
cmp dword [0x00409a44], 0xa
setl cl
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
or al, cl
nop word cs:[rax + rax]
nop
test al, al
je 0x403e30
jmp 0x403960
cmp dword [0x004099b8], 0xa
jl 0x403e60
mov eax, dword [0x004099ac]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x403e88
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [rbp - 0x10]
cmp dword [rax], 0x6c9c70d3
setb byte [rbp - 2]
cmp dword [0x004099cc], 0xa
jl 0x403e98
mov eax, dword [0x004099fc]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x403e98
mov rax, qword [rbp - 0x10]
cmp dword [rax], 0x6c9c70d3
setb byte [rbp - 2]
jmp 0x403e60
cmp byte [rbp - 2], 0
jne 0x403ce9
jmp 0x403eff
mov rax, qword [rbp - 0x10]
cmp dword [rax], 0x6187f415
setb byte [rbp - 3]
cmp dword [0x004099b4], 0xa
jl 0x403ef0
mov eax, dword [0x0040998c]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x403ef0
mov rax, qword [rbp - 0x10]
cmp dword [rax], 0x6187f415
setb byte [rbp - 3]
jmp 0x403eb0
cmp byte [rbp - 3], 0
jne 0x403b39
jmp 0x403e39
cmp dword [0x0040997c], 0xa
jl 0x403f5f
mov eax, dword [0x004099b0]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x403fad
jmp 0x403f5f
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
sub rsp, 0x20
call sub.msvcrt.dll_fclose
add rsp, 0x20
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x20]
mov rcx, qword [rcx]
sub rsp, 0x20
xor edx, edx
mov r8d, 0x8000
mov r9d, 1
call rax
mov ecx, 1
call sub.msvcrt.dll_exit
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x20]
mov rcx, qword [rcx]
sub rsp, 0x20
xor edx, edx
mov r8d, 0x8000
mov r9d, 1
call rax
add rsp, 0x20
mov rax, qword [rbp - 0x38]
mov rax, qword [rax]
mov rax, qword [rbp - 0x40]
mov rax, qword [rax]
cmp dword [0x004099e8], 0xa
jl 0x403fe6
mov eax, dword [0x00409970]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x403fe6
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x20]
mov rcx, qword [rcx]
sub rsp, 0x20
xor edx, edx
mov r8d, 0x8000
mov r9d, 1
call rax
add rsp, 0x20
mov rax, qword [rbp - 0x38]
mov rax, qword [rax]
mov rax, qword [rbp - 0x40]
mov rax, qword [rax]
jmp 0x403f5f
xor eax, eax
mov rsp, rbp
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret