Function at 0x42d2f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520a79
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x595cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x42d33d
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0
cmp dword [ebx], 0xffffffff
mov dword [ebp - 0x10], 1
je 0x42d52a
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp + 0xc]
push esi
call fcn.0042c340
mov edi, dword [ebp - 0x1c]
push 0
push dword [ebp + 0x10]
push esi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42d522
mov al, byte [edi]
xor bh, bh
xor bl, bl
cmp al, 0xff
jne 0x42d3bc
cmp byte [edi + 1], 0xfe
jne 0x42d3bc
mov bh, 1
mov eax, 2
jmp 0x42d3e6
cmp al, 0xfe
jne 0x42d3d1
cmp byte [edi + 1], 0xff
jne 0x42d3d1
mov bh, 1
mov eax, 2
mov bl, bh
jmp 0x42d3e6
cmp al, 0xef
jne 0x42d426
cmp byte [edi + 1], 0xbb
jne 0x42d426
cmp byte [edi + 2], 0xbf
jne 0x42d426
mov eax, 3
mov esi, dword [ebp - 0x18]
add eax, edi
cmp eax, esi
jne 0x42d3f3
mov esi, edi
jmp 0x42d406
cmp edi, eax
je 0x42d409
sub esi, eax
push esi
push eax
push edi
call fcn.004f7fe0
add esp, 0xc
add esi, edi
mov dword [ebp - 0x18], esi
test bl, bl
je 0x42d429
mov ecx, edi
cmp edi, esi
je 0x42d429
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 0x42d413
jmp 0x42d429
mov esi, dword [ebp - 0x18]
sub esi, edi
cmp byte [edi + esi - 1], 0
je 0x42d45c
inc esi
lea ecx, [ebp - 0x1c]
push esi
call fcn.0042c340
mov edi, dword [ebp - 0x1c]
mov byte [edi + esi - 1], 0
test bh, bh
je 0x42d4b0
inc esi
lea ecx, [ebp - 0x1c]
push esi
call fcn.0042c340
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi - 1], 0
jmp 0x42d475
test bh, bh
je 0x42d4b0
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042c340
mov eax, dword [ebp - 0x1c]
mov word [eax + esi], 0
push eax
lea ecx, [ebp + 0xc]
call fcn.0041f910
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push eax
call fcn.00421a50
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d522
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42d522
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x42d4c5
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 3
test edi, edi
jne 0x42d4dc
xor ecx, ecx
jmp 0x42d4ea
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d4e1
sub ecx, edx
push ecx
push edi
lea ecx, [ebp + 0xc]
call fcn.0042cb10
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0042c0f0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42d522
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x1c]
call fcn.0042c710
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc