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

Disassembly:
push 0xffffffffffffffff
push 0x44ae2d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x45e520]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e520]
xor eax, esp
push eax
lea eax, [esp + 0x3d4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3ec]
mov ebp, dword [esp + 0x3e8]
xor ebx, ebx
push 0x103
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2c9]
push ebx
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], edx
mov byte [esp + 0x2d0], bl
call fcn.00436440
mov esi, dword [esp + 0x3f0]
lea eax, [esp + 0x2d0]
mov ecx, eax
add esp, 0xc
xor edi, edi
mov edx, 0x104
sub esi, ecx
mov cl, byte [esi + eax]
cmp cl, bl
je 0x40a954
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x40a941
jmp 0x40a958
cmp edx, ebx
jne 0x40a960
sub eax, 1
mov edi, 0x8007007a
cmp edi, ebx
mov byte [eax], bl
jl 0x40aa94
push str.ctrl.config
lea edx, [esp + 0x2c8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov esi, 0xf
lea eax, [esp + 0x2c4]
mov dword [esp + 0x190], esi
mov dword [esp + 0x18c], ebx
mov byte [esp + 0x17c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a9a1
sub eax, edx
push eax
lea eax, [esp + 0x2c8]
push eax
lea ecx, [esp + 0x180]
call fcn.004024f0
mov dword [esp + 0x3dc], ebx
push ebx
mov dword [esp + fcn.004156e0], vtable.cfg::CXML.0
mov dword [esp + 0x2c0], esi
mov dword [esp + 0x2bc], ebx
mov byte [esp + 0x2ac], bl
mov dword [esp + 0x2c4], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, vtable.cfg::CXmlCtrl.0
mov dword [esp + 0x198], ebx
mov dword [esp + 0x194], edi
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x180]
push ecx
lea ecx, [esp + 0x2b0]
mov byte [esp + 0x3e8], 1
call fcn.00402280
push 8
push 0x4526c4
lea edx, [esp + 0x1a4]
push 0x104
push edx
call fcn.00432a79
add esp, 0x10
lea ecx, [esp + 0x194]
mov dword [esp + 0x2a0], 8
call fcn.00414d40
test eax, eax
jne 0x40aa9b
lea eax, [esp + 0x194]
mov byte [esp + 0x3dc], bl
push eax
mov dword [esp + 0x198], edi
call fcn.00414c80
cmp dword [esp + 0x190], 0x10
jb 0x40aa94
mov ecx, dword [esp + 0x17c]
push ecx
call fcn.00416c01
add esp, 4
xor eax, eax
jmp 0x40b0f9
cmp dword [ebp + 0x14], ebx
je 0x40ab62
push str.version
lea ecx, [esp + 0x48]
call fcn.004020b0
push str.software
lea ecx, [esp + 0x20]
mov byte [esp + 0x3e0], 2
call fcn.004020b0
push ebx
push ebp
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1a4]
mov byte [esp + 0x3ec], 3
call fcn.004153f0
test eax, eax
mov ebp, 0x10
sete byte [esp + 0x1b]
cmp dword [esp + 0x34], ebp
jb 0x40ab07
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00416c01
add esp, 4
mov byte [esp + 0x3dc], 1
cmp dword [esp + 0x5c], ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x40ab2e
mov edx, dword [esp + 0x48]
push edx
call fcn.00416c01
add esp, 4
cmp byte [esp + 0x1b], bl
je 0x40ab67
lea eax, [esp + 0x194]
mov byte [esp + 0x3dc], bl
push eax
mov dword [esp + 0x198], edi
call fcn.00414c80
lea ecx, [esp + 0x178]
call fcn.00402120
xor eax, eax
jmp 0x40b0f9
mov ebp, 0x10
push 6
push str.driver
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.004024f0
mov byte [esp + 0x3dc], 4
push 4
push str.card
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004024f0
mov dword [esp + 0x3dc], 5
push 4
push str.type
lea ecx, [esp + 0x68]
mov dword [esp + 0x1c], 3
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.004024f0
mov dword [esp + 0x3dc], 6
push 6
mov edi, 7
push str.device
lea ecx, [esp + 0x84]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.004024f0
mov ecx, dword [esp + 0x3c]
push ebx
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x90]
mov dword [esp + 0x3f0], edi
push edx
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x2c], esi
call fcn.004156e0
test eax, eax
je 0x40adea
push str.driver
lea ecx, [esp + 0x10c]
call fcn.004020b0
mov dword [esp + 0x3dc], 8
push str.cert
lea ecx, [esp + 0xd4]
mov dword [esp + 0x18], 0x1f
call fcn.004020b0
mov dword [esp + 0x3dc], 9
push str.type
lea ecx, [esp + 0xb8]
mov dword [esp + 0x18], 0x3f
call fcn.004020b0
mov dword [esp + 0x3dc], 0xa
push str.device
lea ecx, [esp + 0x128]
mov dword [esp + 0x18], 0x7f
call fcn.004020b0
mov eax, dword [esp + 0x40]
push ebx
push eax
lea ecx, [esp + 0x110]
push ecx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x138]
push ecx
mov dword [esp + 0x3f4], 0xb
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x2c], 0xff
call fcn.004156e0
test eax, eax
je 0x40adea
push str.enabled
lea ecx, [esp + 0x144]
call fcn.004020b0
mov dword [esp + 0x3dc], 0xc
push str.cert
lea ecx, [esp + 0xf0]
mov dword [esp + 0x18], 0x1ff
call fcn.004020b0
mov dword [esp + 0x3dc], 0xd
push str.type
lea ecx, [esp + 0x160]
mov dword [esp + 0x18], 0x3ff
call fcn.004020b0
mov dword [esp + 0x3dc], 0xe
push str.device
lea ecx, [esp + 0x9c]
mov dword [esp + 0x18], 0x7ff
call fcn.004020b0
mov edx, dword [esp + 0x38]
push ebx
push edx
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x16c]
push edx
lea eax, [esp + 0xac]
mov dword [esp + 0x3f0], esi
push eax
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x2c], 0xfff
call fcn.004156e0
test eax, eax
mov byte [esp + 0x1b], 1
jne 0x40adee
mov byte [esp + 0x1b], bl
test dword [esp + 0x14], 0x800
je 0x40ae2e
and dword [esp + 0x14], 0xfffff7ff
cmp dword [esp + 0xb0], ebp
jb 0x40ae19
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.00416c01
add esp, 4
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
test dword [esp + 0x14], 0x400
je 0x40ae6e
and dword [esp + 0x14], 0xfffffbff
cmp dword [esp + 0x174], ebp
jb 0x40ae59
mov edx, dword [esp + 0x160]
push edx
call fcn.00416c01
add esp, 4
mov dword [esp + 0x174], esi
mov dword [esp + 0x170], ebx
mov byte [esp + 0x160], bl
test dword [esp + 0x14], 0x200
je 0x40aeae
and dword [esp + 0x14], 0xfffffdff
cmp dword [esp + 0x104], ebp
jb 0x40ae99
mov eax, dword [esp + 0xf0]
push eax
call fcn.00416c01
add esp, 4
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
test dword [esp + 0x14], 0x100
je 0x40aeee
and dword [esp + 0x14], 0xfffffeff
cmp dword [esp + 0x158], ebp
jb 0x40aed9
mov ecx, dword [esp + 0x144]
push ecx
call fcn.00416c01
add esp, 4
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
test byte [esp + 0x14], 0x80
je 0x40af2b
and dword [esp + 0x14], 0xffffff7f
cmp dword [esp + 0x13c], ebp
jb 0x40af16
mov edx, dword [esp + 0x128]
push edx
call fcn.00416c01
add esp, 4
mov dword [esp + 0x13c], esi
mov dword [esp + 0x138], ebx
mov byte [esp + 0x128], bl
test byte [esp + 0x14], 0x40
je 0x40af65
and dword [esp + 0x14], 0xffffffbf
cmp dword [esp + 0xcc], ebp
jb 0x40af50
mov eax, dword [esp + 0xb8]
push eax
call fcn.00416c01
add esp, 4
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
test byte [esp + 0x14], 0x20
je 0x40af9f
and dword [esp + 0x14], 0xffffffdf
cmp dword [esp + 0xe8], ebp
jb 0x40af8a
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.00416c01
add esp, 4
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
test byte [esp + 0x14], 0x10
je 0x40afd9
and dword [esp + 0x14], 0xffffffef
cmp dword [esp + 0x120], ebp
jb 0x40afc4
mov edx, dword [esp + 0x10c]
push edx
call fcn.00416c01
add esp, 4
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
test byte [esp + 0x14], 8
je 0x40b013
and dword [esp + 0x14], 0xfffffff7
cmp dword [esp + 0x94], ebp
jb 0x40affe
mov eax, dword [esp + 0x80]
push eax
call fcn.00416c01
add esp, 4
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
test byte [esp + 0x14], 4
je 0x40b03e
and dword [esp + 0x14], 0xfffffffb
cmp dword [esp + 0x78], ebp
jb 0x40b032
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00416c01
add esp, 4
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
test byte [esp + 0x14], 2
je 0x40b069
and dword [esp + 0x14], 0xfffffffd
cmp dword [esp + 0x34], ebp
jb 0x40b05d
mov edx, dword [esp + 0x20]
push edx
call fcn.00416c01
add esp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x3dc], 1
test byte [esp + 0x14], 1
je 0x40b08e
cmp dword [esp + 0x5c], ebp
jb 0x40b08e
mov eax, dword [esp + 0x48]
push eax
call fcn.00416c01
add esp, 4
cmp byte [esp + 0x1b], bl
mov byte [esp + 0x3dc], bl
mov dword [esp + fcn.004156e0], vtable.cfg::CXmlCtrl.0
je 0x40b0d3
lea ecx, [esp + 0x194]
push ecx
call fcn.00414c80
cmp dword [esp + 0x190], ebp
jb 0x40b0cc
mov edx, dword [esp + 0x17c]
push edx
call fcn.00416c01
add esp, 4
mov eax, 1
jmp 0x40b0f9
lea eax, [esp + 0x194]
push eax
call fcn.00414c80
cmp dword [esp + 0x190], ebp
jb 0x40b0f9
mov ecx, dword [esp + 0x17c]
push ecx
call fcn.00416c01
add esp, 4
mov ecx, dword [esp + 0x3d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.004322f2
add esp, 0x3cc
ret 0xc