Function at 0x4286a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x5af710]
mov dword [esp], ecx
xor ecx, ecx
push ebx
mov dword [esp + 0x14], ecx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
push ecx
xor eax, ebp
push ecx
mov dword [esp + 0x14c], eax
mov eax, dword [ebp + 0x14]
push 1
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
test eax, eax
lea ebx, [esi + 4]
jle 0x4288b8
mov dword [esp + 0x10], eax
mov dl, byte [ebp + 0xc]
cmp dl, byte [ebx + 4]
jne 0x4288a6
xor eax, eax
mov ecx, 0x1c
lea edi, [esp + 0xd0]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 8]
push 0x70
lea eax, [esp + 0xd4]
push eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00426a70
mov edx, dword [ebp + 0x10]
cmp dword [esp + 0xd4], edx
jne 0x4288a6
mov eax, dword [esp + 0xe0]
cmp eax, 1
je 0x428758
cmp eax, 2
jne 0x4288a6
mov eax, dword [ebx]
movzx edi, word [ebx + 6]
push eax
push 0
push 0x40
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x428798
push 2
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4288a6
xor eax, eax
mov byte [esp + 0x98], 0
mov ecx, 0xd
lea edi, [esp + 0x99]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x31], ecx
mov dword [esp + 0x35], ecx
mov dword [esp + 0x39], ecx
stosw word es:[edi], ax
mov dword [esp + 0x3d], ecx
stosb byte es:[edi], al
cmp dword [esp + 0xe0], 1
mov dword [esp + 0x41], ecx
mov word [esp + 0x45], cx
mov byte [esp + 0x30], 0
mov byte [esp + 0x47], cl
mov byte [esp + 0x40], 4
je 0x42881d
lea edx, [esp + 0x1c]
push edx
push ecx
push 0x38
lea eax, [esp + 0xa4]
push eax
push 0x18
lea ecx, [esp + 0x44]
push ecx
push 0x210012
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42889f
xor edx, edx
mov dword [esp + 0x49], edx
mov dword [esp + 0x4d], edx
mov dword [esp + 0x51], edx
mov dword [esp + 0x55], edx
mov dword [esp + 0x59], edx
mov word [esp + 0x5d], dx
mov byte [esp + 0x60], dl
xor eax, eax
mov ecx, 0xd
lea edi, [esp + 0x61]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push edx
push 0x30
lea ecx, [esp + 0x6c]
push ecx
push 0x18
mov byte [esp + 0x73], dl
lea edx, [esp + 0x5c]
push edx
push 0x210012
push esi
mov byte [esp + 0x68], 0
mov byte [esp + 0x78], 3
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42889f
mov eax, dword [ebx]
mov ecx, dword [esp + 0x6e]
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
push edx
push eax
call fcn.004280f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
add ebx, 0x10
dec eax
mov dword [esp + 0x10], eax
jne 0x428700
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aaae
mov esp, ebp
pop ebp
ret 0x10