Function at 0x452b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486cd9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ad014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebx], 0
call fcn.0040f6c0
mov ecx, eax
test ecx, ecx
jne 0x452b75
push 0x80004005
call fcn.0041fef0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
cmp dword [esi], 0xffffffff
mov dword [ebp - 0x28], 1
je 0x452d73
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push esi
mov dword [ebp - 4], 1
call fcn.00429c20
mov eax, dword [ebp - 0x14]
push 0
push edi
mov edi, dword [ebp - 0x20]
push esi
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x452d6b
mov al, byte [edi]
xor bh, bh
xor bl, bl
cmp al, 0xff
jne 0x452c01
cmp byte [edi + 1], 0xfe
jne 0x452c01
mov bh, 1
mov eax, 2
jmp 0x452c2b
cmp al, 0xfe
jne 0x452c16
cmp byte [edi + 1], 0xff
jne 0x452c16
mov bh, 1
mov eax, 2
mov bl, bh
jmp 0x452c2b
cmp al, 0xef
jne 0x452c6b
cmp byte [edi + 1], 0xbb
jne 0x452c6b
cmp byte [edi + 2], 0xbf
jne 0x452c6b
mov eax, 3
mov esi, dword [ebp - 0x1c]
add eax, edi
cmp eax, esi
jne 0x452c38
mov esi, edi
jmp 0x452c4b
cmp edi, eax
je 0x452c4e
sub esi, eax
push esi
push eax
push edi
call fcn.0045eba0
add esp, 0xc
add esi, edi
mov dword [ebp - 0x1c], esi
test bl, bl
je 0x452c6e
mov ecx, edi
cmp edi, esi
je 0x452c6e
mov dl, byte [ecx]
mov bl, byte [ecx + 1]
mov byte [ecx + 1], dl
mov byte [ecx], bl
add ecx, 2
cmp ecx, esi
jne 0x452c58
jmp 0x452c6e
mov esi, dword [ebp - 0x1c]
sub esi, edi
cmp byte [edi + esi - 1], 0
je 0x452ca1
inc esi
lea ecx, [ebp - 0x20]
push esi
call fcn.00429c20
mov edi, dword [ebp - 0x20]
mov byte [edi + esi - 1], 0
test bh, bh
je 0x452cf7
inc esi
lea ecx, [ebp - 0x20]
push esi
call fcn.00429c20
mov eax, dword [ebp - 0x20]
mov byte [eax + esi - 1], 0
jmp 0x452cba
test bh, bh
je 0x452cf7
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x20]
call fcn.00429c20
mov eax, dword [ebp - 0x20]
mov word [eax + esi], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.0042aca0
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x24]
mov ecx, ebx
push eax
call fcn.0042bbb0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x452d6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x452d6b
call fcn.0040f6c0
mov ecx, eax
test ecx, ecx
jne 0x452d0c
push 0x80004005
call fcn.0041fef0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test edi, edi
jne 0x452d23
xor ecx, ecx
jmp 0x452d31
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452d28
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.0042d030
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
mov ebx, dword [ebp - 0x24]
mov edx, ebx
call fcn.00457d60
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x452d6b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x20]
call fcn.0042b170
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b64f
mov esp, ebp
pop ebp
ret 0xc