Function at 0x1005af40
Capabilities:
Create thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d54d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x298], eax
test ecx, ecx
je 0x1005b178
mov eax, dword [esi + 0x10]
add eax, 0x58
cmp byte [esi + 0x18], 0
je 0x1005afd2
cmp dword [esi + 0x30], 0x10
lea edx, [esi + 0x1c]
jb 0x1005af9d
mov edx, dword [edx]
push eax
push ecx
lea ecx, [esi + 0x1f0]
call fcn.1006a700
add esp, 8
test al, al
jne 0x1005b178
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x30], 0x10
lea edi, [esi + 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edi
jb 0x1005afe6
mov edi, dword [edi]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
push edi
push str.Loading_file:__s
call fcn.100561a0
push 0x100f7648
push edi
call fcn.100b9c97
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1005b116
push 2
push 0
push edi
call fcn.100b30b4
push edi
call fcn.100ba38c
push 0
push 0
push edi
mov dword [ebp - 0x30], eax
call fcn.100b30b4
mov eax, dword [ebp - 0x30]
add esp, 0x1c
test eax, eax
js 0x1005b10d
cmp eax, 0x100000
ja 0x1005b10d
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.100176b0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.100b3631
add esp, 0x10
cmp eax, dword [ebp - 0x30]
jne 0x1005b10d
push edi
call fcn.100b3d03
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
push dword [ebp - 0x34]
cmovae edx, dword [ebp - 0x28]
lea ecx, [esi + 0x1f0]
push dword [ebp - 0x18]
call fcn.1006a700
add esp, 0xc
mov byte [ebp - 0x29], al
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1005b0f6
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005b0e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b2bf
push edx
push ecx
call fcn.1009091b
mov al, byte [ebp - 0x29]
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x1005afad
push edi
call fcn.100b3d03
add esp, 4
push dword [ebp - 0x38]
push str.Unable_to_open:__s
call fcn.10056110
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1005b161
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005b157
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005b2c4
push edx
push ecx
call fcn.1009091b
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x1005afb5
cmp byte [esi + 0x398], 0
je 0x1005b18d
lea eax, [esi + 0x25bc]
mov dword [esi + 0x25b0], eax
mov ecx, dword [esi + 0x1f8]
mov eax, dword [ecx]
mov edx, dword [eax]
movzx eax, word [esi + 0x1fe]
push eax
movzx eax, word [esi + 0x1fc]
push eax
call edx
test al, al
je 0x1005afb5
lea ecx, [esi + 0x1f0]
call fcn.1005e150
test al, al
je 0x1005afb5
mov ecx, dword [esi + 0x10]
movups xmm0, xmmword [esi + 0x2f0]
movups xmmword [ecx + 0x14], xmm0
movups xmm0, xmmword [esi + 0x300]
movups xmmword [ecx + 0x24], xmm0
mov ecx, dword [ecx + 0x40]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea eax, [ebp - 0x34]
add esi, 0x120
push eax
push 0
push esi
push 0x10057b10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x8000
push eax
mov dword [esi], eax
call edi
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
push 0
add esi, 0x38
push esi
push 0x1005a6d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x8000
push eax
mov dword [esi + 0xc], eax
call edi
mov edi, dword [ebp - 0x3c]
push edi
lea eax, [edi + 0x1f0]
push eax
lea ecx, [edi + 0x2590]
call fcn.10057e50
lea ecx, [edi + 0x120]
mov esi, eax
call fcn.10057d60
push 0
push 0
push 0
push dword [edi + 0x40]
mov byte [edi + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0xffffffffffffffff
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x44], 0
mov byte [edi + 0x4c], 0
cmp esi, 1
je 0x1005b2a0
mov dword [edi + 0x64], 0
mov al, 1
jmp 0x1005afb7
mov esi, dword [edi + 0x10]
push ecx
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
call fcn.10054570
mov eax, dword [esi + 0x58]
add esp, 4
mov dword [esi + 0x5c], eax
mov al, 1
jmp 0x1005afb7
call fcn.100abcda
call fcn.100abcda
int3