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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x494
mov eax, dword [0x445164]
mov dword [esp + 0x490], eax
xor eax, eax
push ebx
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push eax
push eax
push 1
push eax
push eax
push eax
push 0x436690
mov dword [esp + 0x30], ecx
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x4027a4
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x18
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0x74080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40279d
test byte [esp + 0x20], 1
je 0x40279d
xor dl, dl
mov byte [esp + 0xf], dl
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 cl, dl
and cl, 1
or cl, 0xfa
shl cl, 4
movzx ebx, dl
mov dword [esp + 0x50], eax
mov byte [esp + 0x3d], cl
mov ecx, ebx
mov eax, 0x10
sar eax, cl
mov ecx, dword [esp + 0x20]
test ecx, eax
jne 0x40276f
push 0
mov byte [esp + 0x44], dl
lea edx, [esp + 0x14]
push edx
push 0x210
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 0x40279d
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
mov cl, byte [eax - 1]
mov dl, byte [eax]
mov byte [eax - 1], dl
mov byte [eax], cl
add eax, 2
dec esi
jne 0x402631
push 0x104
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x298]
push ecx
call fcn.00419e99
mov eax, dword [esp + 0x20]
lea edx, [ebx + ebx*4]
shl edx, 5
lea ecx, [esp + 0x29c]
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 0x4026a2
push 0x104
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x298]
push eax
call fcn.00419e99
lea ecx, [esp + 0x29c]
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 0x402727
push 0x104
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x298]
push ecx
call fcn.00419e99
lea edx, [esp + 0x29c]
push edx
push 0x4365fc
add esi, 0x54
push esi
call fcn.00419260
mov dl, byte [esp + 0x27]
mov esi, dword [esp + 0x30]
add esp, 0x18
inc dl
cmp dl, 4
mov byte [esp + 0xf], dl
jb 0x402570
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x49c]
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 + 0x49c]
xor eax, eax
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret