Function at 0x4612f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c54b1
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x98], ecx
mov esi, dword [ebp + 8]
xor eax, eax
cmp byte [ecx + 0x40], al
mov ecx, esi
setne al
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004242c0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 7
jbe 0x46134e
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push dword [ebp - 0x88]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x94], 0x4d81f4
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x90], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0040bf40
cmp edi, 0xffffffff
je 0x4616b8
xor eax, eax
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0xa4]
push eax
push 2
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4613ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x461673
mov ax, word [ebp - 0x84]
xor cl, cl
mov edx, 0xbbef
mov dword [ebp - 0x88], ecx
mov byte [ebp - 0x7d], cl
cmp ax, dx
jne 0x461429
push 0
lea eax, [ebp - 0xa4]
push eax
push 1
lea eax, [ebp - 0x7d]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46140d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x461673
mov ecx, dword [ebp - 0x88]
mov eax, 1
cmp byte [ebp - 0x7d], 0xbf
movzx ecx, cl
cmove ecx, eax
mov ax, word [ebp - 0x84]
mov edx, 0xfeff
cmp ax, dx
je 0x461491
mov edx, 0xfffe
cmp ax, dx
je 0x461491
test cl, cl
jne 0x461495
cmp ah, 0x7f
ja 0x4616f5
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x461469
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x461673
mov ax, word [ebp - 0x84]
movzx eax, ax
mov dword [ebp - 0x8c], eax
call fcn.0040b040
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x461720
jmp 0x461584
test cl, cl
je 0x461470
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 4
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0xa0], esp
mov dword [ebp - 0x8c], eax
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
mov dword [eax], 0x4dcd6c
mov dword [eax + 4], ecx
mov dword [eax + 0x24], eax
mov byte [ebp - 4], 6
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x9c], esp
mov dword [ebp - 0x88], eax
mov edx, ecx
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x98]
mov dword [eax], 0x4dcd84
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0x24], eax
mov byte [ebp - 4], 8
push dword [ebp + 0xc]
push edi
mov byte [ebp - 4], 4
call fcn.00461e80
mov esi, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x46156d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x461563
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46172a
push ecx
push edx
call fcn.00486428
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x461673
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, dword [ebp - 0x9c]
call esi
add eax, 0x10
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 0xa
sub esp, 0x28
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
mov ecx, dword [ebp - 0x98]
mov word [ebp - 0x18], ax
mov eax, esp
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x8c], esp
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 0xb
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 4], xmm0
mov dword [eax], 0x4dcd3c
mov dword [eax + 0xc], edx
mov dword [eax + 0x24], eax
mov byte [ebp - 4], 0xc
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x98], esp
mov dword [ebp - 0xa8], eax
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 0xd
mov dword [eax], 0x4dcd54
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0x24], eax
mov byte [ebp - 4], 0xe
push dword [ebp + 0xc]
push edi
mov byte [ebp - 4], 0xa
call fcn.00461e80
mov esi, eax
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp - 0x88]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x461673
mov edi, dword [edx]
push edx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, edi
call esi
mov edi, dword [ebp - 0xa0]
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x94], 0x4d81f4
test edi, edi
je 0x461699
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x90], 0
mov eax, esi
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.0048641a
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004242c0
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.0040bdd0
push eax
push 0xfdf4
push 0x3f
lea eax, [ebp - 0x7c]
push str.C:ReleaseAIplatformcmdCommandFile.cpp
push eax
call fcn.00413920
add esp, 0x14
lea eax, [ebp - 0x7c]
push 0x4f3e34
push eax
call fcn.004881d5
push 0xfdf7
push 0x54
push str.C:ReleaseAIplatformcmdCommandFile.cpp
lea eax, [ebp - 0x7c]
push 0xe001006a
push eax
call fcn.00413a60
add esp, 0x14
lea eax, [ebp - 0x7c]
push 0x4f3e34
push eax
call fcn.004881d5
push 0x80004005
call fcn.0040b700
call fcn.0048b78f
int3