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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x534
mov eax, dword [0x445164]
mov dword [esp + 0x530], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
mov byte [esp + 0xf], al
lea ecx, [ecx]
movzx ebx, byte [esp + 0xf]
push ebx
lea ecx, [esp + 0x294]
push 0x4366ac
push ecx
call fcn.00419260
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x402a81
push 0
lea eax, [esp + 0x14]
push eax
push 0x18
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0x74080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40286e
push esi
jmp 0x402a7b
mov edx, dword [esp + 0x20]
test dl, 1
je 0x402aab
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov ecx, 0x84
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
mov dword [esp + 0x50], eax
mov al, byte [esp + 0xf]
mov cl, al
and cl, 1
or cl, 0xfa
shl cl, 4
mov byte [esp + 0x3d], cl
mov edi, 0x10
mov ecx, ebx
sar edi, cl
test edx, edi
jne 0x402a81
push 0
lea edx, [esp + 0x14]
push edx
push 0x210
mov byte [esp + 0x4c], al
lea eax, [esp + 0x8c]
push eax
push 0x20
lea ecx, [esp + 0x48]
push ecx
push 0x7c088
push esi
mov byte [esp + 0x5e], 0xec
mov byte [esp + 0x59], 1
mov byte [esp + 0x5a], 1
mov dword [esp + 0x54], 0x200
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402aab
mov ecx, 0xa
lea esi, [esp + 0xc6]
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x7c], 0
lea eax, [esp + 0x55]
mov esi, 0x14
lea esp, [esp]
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
add eax, 2
dec esi
jne 0x402940
push 0x104
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x338]
push ecx
call fcn.00419e99
mov eax, dword [esp + 0x20]
lea edx, [ebx + ebx*4]
shl edx, 5
lea ecx, [esp + 0x33c]
push ecx
lea esi, [edx + eax]
lea edx, [esi + 4]
push 0x4365fc
push edx
call fcn.00419260
mov eax, dword [esp + 0xd6]
mov ecx, dword [esp + 0xda]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
add esp, 0x18
mov byte [esp + 0x5c], 0
lea eax, [esp + 0x55]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
mov byte [eax - 1], bl
mov byte [eax], dl
add eax, 2
dec ecx
jne 0x4029b1
push 0x104
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x338]
push eax
call fcn.00419e99
lea ecx, [esp + 0x33c]
push ecx
lea edx, [esi + 0x2c]
push 0x4365fc
push edx
call fcn.00419260
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xcc]
mov dword [esp + 0x78], eax
add esp, 0x18
mov dword [esp + 0x5c], edx
mov dword [esp + 0x64], ecx
mov byte [esp + 0x68], 0
lea eax, [esp + 0x55]
mov edi, 0xa
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
add eax, 2
dec edi
jne 0x402a36
push 0x104
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x338]
push ecx
call fcn.00419e99
lea edx, [esp + 0x33c]
push edx
push 0x4365fc
add esi, 0x54
push esi
call fcn.00419260
mov eax, dword [esp + 0x30]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0xf]
inc al
cmp al, 4
mov byte [esp + 0xf], al
jb 0x402800
mov eax, 1
mov ecx, dword [esp + 0x53c]
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x53c]
xor eax, eax
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret