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

Disassembly:
add ebx, dword [ebx - 0x4d]
in eax, dx
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004089ae
add al, 9
jns 0x40abe5
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40ab9b
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40ab9b
call fcn.004089ae
mov esp, 0x8b190dce
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.004089ae
cmc
wait
jne 0x40ac2c
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.004091ae
mov dword [ebp - 0x2c], eax
je 0x40abf6
in eax, 0xff
dec dword [ecx + 0x974d445]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x28], ecx
lea eax, [esi + 0x52]
push eax
call fcn.0040a7ae
pop ecx
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov dword [edx], ecx
mov eax, dword [ebp - 0x30]
mov dword [eax + 4], ebx
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x1c]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x10], esi
mov edx, dword [ebp - 0x30]
mov word [edx + 0x18], di
mov ecx, dword [ebp - 0x30]
mov ax, word [ebp - 0x2c]
mov word [ecx + 0x1a], ax
aam 0x66
mov dword [ecx + 0x1a], eax
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x1c], 0x40a7f8
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x20]
mov dword [edx + 0x34], ecx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x24]
mov dword [eax + 0x38], edx
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x18]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
mov edx, dword [ebp - 0x30]
mov byte [edx + 0x44], 1
push esi
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x30]
add ecx, 0x52
push ecx
call fcn.00406364
add esp, 0xc
mov eax, dword [0x411abc]
cmp dword [eax], 1
je 0x40acb7
mov edx, dword [0x411abc]
cmp dword [edx], 2
jne 0x40ad1d
push ebx
call fcn.00406b8c
pop ecx
mov ebx, eax
mov ecx, dword [ebp + 0x34]
push dword [ecx + 0x18]
mov eax, dword [ebp + 0x34]
push dword [eax + 0x14]
mov edx, dword [ebp + 0x34]
push dword [edx + 0x10]
mov ecx, dword [ebp + 0x34]
push dword [ecx + 0xc]
mov eax, dword [ebp + 0x34]
push dword [eax + 8]
mov edx, dword [ebp + 0x34]
push dword [edx + 4]
mov ecx, dword [ebp + 0x34]
push dword [ecx]
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0x44], 0
je 0x40acfa
mov edx, dword [ebp - 0x30]
add edx, 0x52
jmp 0x40ad00
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x40]
push edx
push ebx
call fcn.0040a9f9
pop ecx
push eax
push ebx
mov eax, dword [ebp + 0x28]
sub eax, 5
push eax
push 0xb
push 1
call fcn.0040aa11
add esp, 0x34
test byte [ebp - 0x2c], 1
je 0x40ad88
cmp dword [ebp + 0x14], 0
jne 0x40ad40
push 0x43d
push 0x410768
push str.cctrAddr
call fcn.00409bac
add esp, 0xc
mov ecx, dword [0x411ab8]
mov dword [ebp - 0x34], ecx
mov word [ebp - 0x14], 8
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x30]
add eax, 0x52
push eax
call fcn.0040a8eb
mov word [ebp - 0x14], 0
add esp, 0x10
jmp 0x40ad7f
mov edx, dword [ebp - 0x34]
mov dword [0x411ab8], edx
call fcn.00401140
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x40]
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
push ecx
push 3
push 1
push 0xeefface
call sub.KERNEL32.DLL_RaiseException
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret