Function at 0x27f021
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2bd128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2d20
call fcn.002a2790
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2d2c], ecx
mov dword [ebp - 0x2ccc], 0x200
mov dword [ebp - 0x2ce4], 0x3e
mov dword [ebp - 0x2cc4], 0
mov dword [ebp - 0x2cb4], 0
mov dword [ebp - 0x2cdc], 0
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0xff
je 0x27f0a9
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
cmp eax, 0xf3
je 0x27f0a9
mov eax, 0x7fffffff
jmp 0x27fce0
mov ecx, dword [ebp - 0x2d2c]
xor edx, edx
mov dl, byte [ecx + 0x810]
cmp edx, 1
je 0x27f0d9
mov eax, dword [ebp - 0x2d2c]
xor ecx, ecx
mov cl, byte [eax + 0x810]
cmp ecx, 2
je 0x27f0d9
mov eax, 1
jmp 0x27fce0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x2ca0]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edx, dword [ebp - 0x2d2c]
xor eax, eax
mov al, byte [edx + 0x810]
cmp eax, 1
jne 0x27f13c
push 4
push 0x2d8a48
lea ecx, [ebp - 0x49]
push ecx
call fcn.002a27c0
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov ax, word [edx + 1]
mov word [ebp - 0x53], ax
push 9
mov ecx, dword [ebp + 0xc]
add ecx, 3
push ecx
lea edx, [ebp - 0x43]
push edx
call fcn.002a27c0
add esp, 0xc
mov eax, dword [ebp - 0x2d2c]
xor ecx, ecx
mov cl, byte [eax + 0x810]
cmp ecx, 2
jne 0x27f17a
push 4
push 0x2d8a50
lea edx, [ebp - 0x2c95]
push edx
call fcn.002a27c0
add esp, 0xc
push 0xc
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c8f]
push ecx
call fcn.002a27c0
add esp, 0xc
mov byte [ebp - 0x2c90], 0
cmp dword [ebp + 0x10], 2
jne 0x27f1c6
mov byte [ebp - 0x2c91], 0
mov dl, byte [ebp - 0x2c91]
mov byte [ebp - 0x45], dl
mov dword [ebp + 0x14], 0
mov dword [ebp - 0x2c9d], 0
mov eax, dword [ebp - 0x2c9d]
mov dword [ebp - 0x51], eax
mov dword [ebp - 0x2c99], 0
mov ecx, dword [ebp - 0x2c99]
mov dword [ebp - 0x4d], ecx
jmp 0x27f20e
mov dl, byte [ebp + 0x10]
mov byte [ebp - 0x2c91], dl
mov al, byte [ebp - 0x2c91]
mov byte [ebp - 0x45], al
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c9d], ecx
mov edx, dword [ebp - 0x2c9d]
mov dword [ebp - 0x51], edx
mov eax, dword [ebp - 0x2ce4]
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + eax - 1]
xor edx, edx
div dword [ebp - 0x2ce4]
mov dword [ebp - 0x2c99], eax
mov edx, dword [ebp - 0x2c99]
mov dword [ebp - 0x4d], edx
mov word [ebp - 0x2cd0], 0
mov word [ebp - 0x2cbc], 0
mov word [ebp - 0x2ce0], 0
mov word [ebp - 0x2cb8], 0
mov dword [ebp - 0x2cd4], 0
mov dword [ebp - 0x2ca4], 0
mov dword [ebp - 0x2cd4], 0
mov dword [ebp - 0x2ca4], 0
mov dword [ebp - 0x2cb0], 0xffffffff
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2cb0], eax
cmp dword [ebp - 0x2cb0], 0xffffffff
je 0x27f299
mov dword [ebp - 0x2cd4], 1
mov ecx, dword [ebp - 0x2ca4]
add ecx, 1
mov dword [ebp - 0x2ca4], ecx
cmp dword [ebp - 0x2cd4], 0
jne 0x27f2ce
push 0x1f4
mov ecx, dword [ebp - 0x2d2c]
add ecx, 0x814
call fcn.00264f2a
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x2cd4], 0
jne 0x27f2e4
cmp dword [ebp - 0x2ca4], 6
jl 0x27f25a
cmp dword [ebp - 0x2cd4], 0
jne 0x27f30a
mov edx, dword [ebp - 0x2cb0]
push edx
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x27fce0
lea eax, [ebp - 0x2cd8]
push eax
mov ecx, dword [ebp - 0x2cb0]
push ecx
call sub.HID.DLL_HidD_GetPreparsedData
and eax, 0xff
test eax, eax
je 0x27f3d1
lea edx, [ebp - 0x2d24]
push edx
mov eax, dword [ebp - 0x2cd8]
push eax
call sub.HID.DLL_HidP_GetCaps
cmp eax, 0x110000
jne 0x27f39a
mov cx, word [ebp - 0x2d20]
mov word [ebp - 0x2cd0], cx
mov edx, dword [ebp - 0x2cd0]
and edx, 0xffff
sub edx, 1
mov word [ebp - 0x2cbc], dx
mov ax, word [ebp - 0x2d1e]
mov word [ebp - 0x2ce0], ax
mov ecx, dword [ebp - 0x2ce0]
and ecx, 0xffff
sub ecx, 1
mov word [ebp - 0x2cb8], cx
mov edx, dword [ebp - 0x2cd8]
push edx
call sub.HID.DLL_HidD_FreePreparsedData
jmp 0x27f3cf
mov eax, dword [ebp - 0x2cd8]
push eax
call sub.HID.DLL_HidD_FreePreparsedData
mov ecx, dword [ebp - 0x2cb0]
push ecx
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov edx, dword [ebp - 0x2cb0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x7ffffffe
jmp 0x27fce0
jmp 0x27f3fa
mov eax, dword [ebp - 0x2cb0]
push eax
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov ecx, dword [ebp - 0x2cb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x7ffffffe
jmp 0x27fce0
mov edx, dword [ebp - 0x2cbc]
and edx, 0xffff
mov dword [ebp - 0x2ccc], edx
mov eax, dword [ebp - 0x2cb8]
and eax, 0xffff
mov dword [ebp - 0x2ce4], eax
cmp dword [ebp + 0x10], 1
jne 0x27f449
mov ecx, dword [ebp - 0x2ccc]
mov edx, dword [ebp + 0x14]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0x2ccc]
mov dword [ebp - 0x2c99], eax
mov eax, dword [ebp - 0x2c99]
mov dword [ebp - 0x4d], eax
jmp 0x27f473
cmp dword [ebp + 0x10], 0
jne 0x27f473
mov ecx, dword [ebp - 0x2ce4]
mov edx, dword [ebp + 0x14]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0x2ce4]
mov dword [ebp - 0x2c99], eax
mov eax, dword [ebp - 0x2c99]
mov dword [ebp - 0x4d], eax
push 0x20
mov ecx, dword [ebp - 0x2cb0]
push ecx
call sub.HID.DLL_HidD_SetNumInputBuffers
and eax, 0xff
test eax, eax
jne 0x27f4b3
mov edx, dword [ebp - 0x2cb0]
push edx
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov eax, dword [ebp - 0x2cb0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x7ffffffe
jmp 0x27fce0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2d2c]
xor edx, edx
mov dl, byte [ecx + 0x810]
cmp edx, 1
jne 0x27f4fa
push 0
lea eax, [ebp - 0x2cac]
push eax
mov ecx, dword [ebp - 0x2ce0]
and ecx, 0xffff
push ecx
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x2cb0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x2cb4], eax
mov ecx, dword [ebp - 0x2d2c]
xor edx, edx
mov dl, byte [ecx + 0x810]
cmp edx, 2
jne 0x27f53d
push 0
lea eax, [ebp - 0x2cac]
push eax
mov ecx, dword [ebp - 0x2ce0]
and ecx, 0xffff
push ecx
lea edx, [ebp - 0x2ca0]
push edx
mov eax, dword [ebp - 0x2cb0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x2cb4], eax
cmp dword [ebp - 0x2cb4], 0
jne 0x27f57c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2ca8], eax
mov ecx, dword [ebp - 0x2cb0]
push ecx
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov edx, dword [ebp - 0x2cb0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2ca8]
jmp 0x27fce0
mov eax, dword [ebp - 0x2ce4]
add eax, 1
cmp dword [ebp - 0x2cac], eax
je 0x27f5c1
mov dword [ebp - 0x2ca8], 0x7ffffffd
mov ecx, dword [ebp - 0x2cb0]
push ecx
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov edx, dword [ebp - 0x2cb0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2ca8]
jmp 0x27fce0
mov dword [ebp - 0x2ca8], 0
mov dword [ebp - 0x2cc8], 0
cmp dword [ebp + 0x10], 1
jne 0x27fa27
cmp dword [ebp + 0x14], 0x200
ja 0x27f895
mov eax, dword [ebp - 0x2d2c]
xor ecx, ecx
mov cl, byte [eax + 0x810]
cmp ecx, 1
jne 0x27f61a
mov edx, dword [ebp - 0x2cd0]
and edx, 0xffff
mov eax, dword [ebp - 0x4d]
add eax, 1
imul eax, edx
mov dword [ebp - 0x2cc4], eax
mov ecx, dword [ebp - 0x2d2c]
xor edx, edx
mov dl, byte [ecx + 0x810]
cmp edx, 2
jne 0x27f64a
mov eax, dword [ebp - 0x2cd0]
and eax, 0xffff
mov ecx, dword [ebp - 0x2c99]
add ecx, 1
imul ecx, eax
mov dword [ebp - 0x2cc4], ecx
cmp dword [ebp - 0x2cc4], 0x2c08
jbe 0x27f662
mov dword [ebp - 0x2d30], 0x2c08
jmp 0x27f66e
mov edx, dword [ebp - 0x2cc4]
mov dword [ebp - 0x2d30], edx
mov eax, dword [ebp - 0x2d30]
mov dword [ebp - 0x2cc4], eax
push 0
lea ecx, [ebp - 0x2cac]
push ecx
mov edx, dword [ebp - 0x2cc4]
push edx
mov eax, dword [ebp - 0x2cc8]
lea ecx, [ebp + eax - 0x2c5c]
push ecx
mov edx, dword [ebp - 0x2cb0]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x27f6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2ca8], eax
mov eax, dword [ebp - 0x2cb0]
push eax
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov ecx, dword [ebp - 0x2cb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
jmp 0x27f246
mov edx, dword [ebp - 0x2cc8]
add edx, dword [ebp - 0x2cac]
mov dword [ebp - 0x2cc8], edx
mov eax, dword [ebp - 0x2cc4]
sub eax, dword [ebp - 0x2cac]
mov dword [ebp - 0x2cc4], eax
cmp dword [ebp - 0x2cc4], 0
jne 0x27f67a
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2cc4], ecx
mov dword [ebp - 0x2cc0], 0
mov edx, 1
test edx, edx
je 0x27f806
mov eax, dword [ebp - 0x2cbc]
and eax, 0xffff
cmp dword [ebp - 0x2cc4], eax
jae 0x27f78d
mov ecx, dword [ebp - 0x2cc4]
push ecx
mov edx, dword [ebp - 0x2cd0]
and edx, 0xffff
mov eax, dword [ebp - 0x2cc0]
imul eax, edx
lea ecx, [ebp + eax - 0x2c5b]
push ecx
mov edx, dword [ebp - 0x2cbc]
and edx, 0xffff
mov eax, dword [ebp - 0x2cc0]
imul eax, edx
mov ecx, dword [ebp + 0x18]
add ecx, eax
push ecx
call fcn.002a27c0
add esp, 0xc
jmp 0x27f806
mov edx, dword [ebp - 0x2cbc]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x2cd0]
and eax, 0xffff
mov ecx, dword [ebp - 0x2cc0]
imul ecx, eax
lea edx, [ebp + ecx - 0x2c5b]
push edx
mov eax, dword [ebp - 0x2cbc]
and eax, 0xffff
mov ecx, dword [ebp - 0x2cc0]
imul ecx, eax
mov edx, dword [ebp + 0x18]
add edx, ecx
push edx
call fcn.002a27c0
add esp, 0xc
mov eax, dword [ebp - 0x2cc0]
add eax, 1
mov dword [ebp - 0x2cc0], eax
mov ecx, dword [ebp - 0x2cbc]
and ecx, 0xffff
mov edx, dword [ebp - 0x2cc4]
sub edx, ecx
mov dword [ebp - 0x2cc4], edx
jmp 0x27f724
mov eax, dword [ebp - 0x2cb0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2d2c]
xor edx, edx
mov dl, byte [ecx + 0x810]
cmp edx, 1
jne 0x27f846
mov eax, dword [ebp - 0x2cd0]
and eax, 0xffff
mov ecx, dword [ebp - 0x4d]
imul ecx, eax
xor edx, edx
mov dl, byte [ebp + ecx - 0x2c55]
mov dword [ebp - 0x2cdc], edx
mov eax, dword [ebp - 0x2d2c]
xor ecx, ecx
mov cl, byte [eax + 0x810]
cmp ecx, 2
jne 0x27f87d
mov edx, dword [ebp - 0x2cd0]
and edx, 0xffff
mov eax, dword [ebp - 0x2c99]
imul eax, edx
xor ecx, ecx
mov cl, byte [ebp + eax - 0x2c55]
mov dword [ebp - 0x2cdc], ecx
cmp dword [ebp - 0x2cdc], 0
je 0x27f88e
or eax, 0xffffffff
jmp 0x27fce0
xor eax, eax
jmp 0x27fce0
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2cc4], edx
mov eax, dword [ebp - 0x2d2c]
xor ecx, ecx
mov cl, byte [eax + 0x810]
cmp ecx, 1
jne 0x27f8ba
mov edx, dword [ebp - 0x4d]
mov dword [ebp - 0x2cdc], edx
mov eax, dword [ebp - 0x2d2c]
xor ecx, ecx
mov cl, byte [eax + 0x810]
cmp ecx, 2
jne 0x27f8d9
mov edx, dword [ebp - 0x2c99]
mov dword [ebp - 0x2cdc], edx
mov dword [ebp - 0x2cc0], 0
jmp 0x27f8f4
mov eax, dword [ebp - 0x2cc0]
add eax, 1
mov dword [ebp - 0x2cc0], eax
mov ecx, dword [ebp - 0x2cc0]
cmp ecx, dword [ebp - 0x2cdc]
jae 0x27fa22
push 0
lea edx, [ebp - 0x2cac]
push edx
mov eax, dword [ebp - 0x2ccc]
add eax, 1
push eax
lea ecx, [ebp - 0x2c5c]
push ecx
mov edx, dword [ebp - 0x2cb0]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x27f967
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2ca8], eax
mov eax, dword [ebp - 0x2cb0]
push eax
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov ecx, dword [ebp - 0x2cb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2ca8]
jmp 0x27fce0
mov edx, dword [ebp - 0x2ccc]
add edx, 1
cmp dword [ebp - 0x2cac], edx
je 0x27f9ac
mov dword [ebp - 0x2ca8], 0x7ffffffc
mov eax, dword [ebp - 0x2cb0]
push eax
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov ecx, dword [ebp - 0x2cb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2ca8]
jmp 0x27fce0
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x2ccc]
jae 0x27f9d9
mov eax, dword [ebp - 0x2cc4]
push eax
lea ecx, [ebp - 0x2c5b]
push ecx
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 0x2cc8]
push edx
call fcn.002a27c0
add esp, 0xc
jmp 0x27fa1d
mov eax, dword [ebp - 0x2ccc]
push eax
lea ecx, [ebp - 0x2c5b]
push ecx
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 0x2cc8]
push edx
call fcn.002a27c0
add esp, 0xc
mov eax, dword [ebp - 0x2cc4]
sub eax, dword [ebp - 0x2ccc]
mov dword [ebp - 0x2cc4], eax
mov ecx, dword [ebp - 0x2cc8]
add ecx, dword [ebp - 0x2ccc]
mov dword [ebp - 0x2cc8], ecx
jmp 0x27f8e5
jmp 0x27fbe7
cmp dword [ebp + 0x10], 0
jne 0x27fbe7
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2cc4], edx
mov eax, dword [ebp - 0x2d2c]
xor ecx, ecx
mov cl, byte [eax + 0x810]
cmp ecx, 1
jne 0x27fa56
mov edx, dword [ebp - 0x4d]
mov dword [ebp - 0x2cdc], edx
mov eax, dword [ebp - 0x2d2c]
xor ecx, ecx
mov cl, byte [eax + 0x810]
cmp ecx, 2
jne 0x27fa75
mov edx, dword [ebp - 0x2c99]
mov dword [ebp - 0x2cdc], edx
mov dword [ebp - 0x2cc0], 0
jmp 0x27fa90
mov eax, dword [ebp - 0x2cc0]
add eax, 1
mov dword [ebp - 0x2cc0], eax
mov ecx, dword [ebp - 0x2cc0]
cmp ecx, dword [ebp - 0x2cdc]
jae 0x27fbe7
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x2ce4]
jae 0x27faee
mov ecx, dword [ebp - 0x2ce4]
add ecx, 1
xor eax, eax
lea edi, [ebp - 0x2c5c]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x2cc4]
push eax
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0x2cc8]
push ecx
lea edx, [ebp - 0x2c5b]
push edx
call fcn.002a27c0
add esp, 0xc
jmp 0x27fb3c
mov byte [ebp - 0x2c5c], 0
mov eax, dword [ebp - 0x2ce4]
add eax, 1
push eax
mov ecx, dword [ebp + 0x18]
add ecx, dword [ebp - 0x2cc8]
push ecx
lea edx, [ebp - 0x2c5b]
push edx
call fcn.002a27c0
add esp, 0xc
mov eax, dword [ebp - 0x2cc4]
sub eax, dword [ebp - 0x2ce4]
mov dword [ebp - 0x2cc4], eax
mov ecx, dword [ebp - 0x2cc8]
add ecx, dword [ebp - 0x2ce4]
mov dword [ebp - 0x2cc8], ecx
push 0
lea edx, [ebp - 0x2cac]
push edx
mov eax, dword [ebp - 0x2ce4]
add eax, 1
push eax
lea ecx, [ebp - 0x2c5c]
push ecx
mov edx, dword [ebp - 0x2cb0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x27fb9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2ca8], eax
mov eax, dword [ebp - 0x2cb0]
push eax
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov ecx, dword [ebp - 0x2cb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2ca8]
jmp 0x27fce0
mov edx, dword [ebp - 0x2ce4]
add edx, 1
cmp dword [ebp - 0x2cac], edx
je 0x27fbe2
mov dword [ebp - 0x2ca8], 0x7ffffffb
mov eax, dword [ebp - 0x2cb0]
push eax
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov ecx, dword [ebp - 0x2cb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2ca8]
jmp 0x27fce0
jmp 0x27fa81
jmp 0x27fbef
mov dword [ebp - 4], 0xffffffff
push 0
lea edx, [ebp - 0x2cac]
push edx
mov eax, dword [ebp - 0x2ccc]
add eax, 1
push eax
lea ecx, [ebp - 0x2c5c]
push ecx
mov edx, dword [ebp - 0x2cb0]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x27fc57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2ca8], eax
mov eax, dword [ebp - 0x2cb0]
push eax
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov ecx, dword [ebp - 0x2cb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2ca8]
jmp 0x27fce0
mov edx, dword [ebp - 0x2ccc]
add edx, 1
cmp dword [ebp - 0x2cac], edx
je 0x27fc99
mov dword [ebp - 0x2ca8], 0x7ffffffa
mov eax, dword [ebp - 0x2cb0]
push eax
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov ecx, dword [ebp - 0x2cb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2ca8]
jmp 0x27fce0
mov edx, dword [ebp - 0x2c55]
and edx, 0xff
test edx, edx
je 0x27fccd
mov eax, dword [ebp - 0x2cb0]
push eax
mov ecx, dword [ebp - 0x2d2c]
call fcn.0027fcf3
mov ecx, dword [ebp - 0x2cb0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x27fce0
mov edx, dword [ebp - 0x2cb0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2ca8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14