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

Disassembly:
sub esp, 0x180
lea ecx, [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x188]
push ebp
push esi
lea eax, [ebx + 0x34]
push edi
push eax
push str.driver_s
push ecx
call fcn.00406f66
lea edx, [esp + 0x84]
push 0x41f50c
push edx
call fcn.00407151
mov edi, eax
add esp, 0x14
test edi, edi
je 0x405060
mov eax, dword [ebx + 0x5c]
push eax
call fcn.00406cc5
mov esi, eax
add esp, 4
test esi, esi
je 0x404f12
mov ecx, dword [esp + 0x198]
mov ebp, dword [esp + 0x19c]
push 0
push ecx
push ebp
call fcn.00407538
mov edx, dword [ebx + 0x5c]
push ebp
push 1
push edx
push esi
call fcn.004072b9
mov eax, dword [ebx + 0x5c]
push edi
push 1
push eax
push esi
call fcn.004073ff
push edi
call fcn.0040701a
push esi
call fcn.00406f1e
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x48]
lea edx, [esp + 0xe8]
rep stosd dword es:[edi], eax
lea ecx, [ebx + 8]
push ecx
push str.driver_s
push edx
call fcn.00406f66
add esp, 0x40
lea eax, [esp + 0xb4]
push 0x41f50c
push eax
call fcn.00407151
mov esi, eax
add esp, 8
test esi, esi
je 0x40501b
mov ecx, dword [ebx + 0x30]
push ecx
call fcn.00406cc5
mov edi, eax
add esp, 4
test edi, edi
jne 0x404cee
push str.malloc_for_pCach_Failed_n
call fcn.00406d51
push esi
call fcn.0040701a
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
mov edx, dword [ebx + 0x30]
push ebp
push 1
push edx
push edi
call fcn.004072b9
mov eax, dword [ebx + 0x30]
push esi
push 1
push eax
push edi
call fcn.004073ff
push esi
call fcn.0040701a
push edi
call fcn.00406f1e
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x3c]
add esp, 0x28
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x88]
test eax, eax
jle 0x404dab
lea ecx, [ebx + 0x60]
lea edx, [esp + 0xf0]
push ecx
push str.driver_s
push edx
call fcn.00406f66
lea eax, [esp + 0xfc]
push 0x41f50c
push eax
call fcn.00407151
mov edi, eax
add esp, 0x14
test edi, edi
je 0x404dfa
mov ecx, dword [ebx + 0x88]
push ecx
call fcn.00406cc5
mov esi, eax
add esp, 4
test esi, esi
je 0x404f12
mov edx, dword [ebx + 0x88]
push ebp
push 1
push edx
push esi
call fcn.004072b9
mov eax, dword [ebx + 0x88]
push edi
push 1
push eax
push esi
call fcn.004073ff
push edi
call fcn.0040701a
push esi
call fcn.00406f1e
add esp, 0x28
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xb4]
test eax, eax
jle 0x404f62
cmp dword [ebx + 4], 0xfe
jne 0x404e3f
mov edi, str.canCard.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404e8f
lea ecx, [esp + 0xf0]
lea edx, [esp + 0x14]
push ecx
push str._s_open_failed__n
push edx
call fcn.00406f66
lea eax, [esp + 0x20]
push eax
push 0x41f4cc
call fcn.00406d51
add esp, 0x14
lea ecx, [esp + 0x14]
push 0
push 0
push ecx
call fcn.004166a5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x180
ret
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x50]
mov edx, 0x420e34
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov ecx, dword [edx - 4]
cmp eax, ecx
jne 0x404e84
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, 0x18
cmp edx, 0x420ef4
jl 0x404e51
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
mov edi, 0x423bc8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404ee1
lea ecx, [esp + 0x50]
lea edx, [esp + 0x12c]
push ecx
push 0x423bc8
push str._s_s
push edx
call fcn.00406f66
lea eax, [esp + 0x13c]
push 0x41f50c
push eax
call fcn.00407151
add esp, 0x18
jmp 0x404ef3
lea ecx, [esp + 0x50]
push 0x41f50c
push ecx
call fcn.00407151
add esp, 8
mov edi, eax
test edi, edi
je 0x404f95
mov edx, dword [ebx + 0xb4]
push edx
call fcn.00406cc5
mov esi, eax
add esp, 4
test esi, esi
jne 0x404f33
push str.malloc_for_pCach_Failed_n
call fcn.00406d51
push edi
call fcn.0040701a
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
mov eax, dword [ebx + 0xb4]
push ebp
push 1
push eax
push esi
call fcn.004072b9
mov ecx, dword [ebx + 0xb4]
push edi
push 1
push ecx
push esi
call fcn.004073ff
push edi
call fcn.0040701a
push esi
call fcn.00406f1e
add esp, 0x28
cmp byte [esp + 0x1a0], 1
jne 0x405009
cmp dword [ebx + 4], 0xfe
jne 0x404f9e
cmp dword [ebx], 1
jne 0x404f9e
mov ecx, dword [esp + 0x1a4]
lea eax, [esp + 0x78]
push eax
push ecx
call fcn.00405110
add esp, 8
jmp 0x404fc5
lea edx, [esp + 0x50]
jmp 0x405064
lea edx, [esp + 0x78]
push edx
push str.infPath:_s_n
call fcn.00406d51
mov ecx, dword [esp + 0x1ac]
lea eax, [esp + 0x80]
push eax
push ecx
call fcn.00405110
add esp, 0x10
mov esi, eax
test esi, esi
jge 0x404fea
lea edx, [esp + 0x78]
push edx
push str._installInf__s_Failed_n
call fcn.00406d51
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
lea eax, [esp + 0x78]
push eax
push str._installInf__s_OK_n
call fcn.00406d51
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x180
ret
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x14]
push ecx
push str._s_open_failed_
push edx
call fcn.00406f66
lea eax, [esp + 0x20]
push eax
push 0x41f4cc
call fcn.00406d51
add esp, 0x14
lea ecx, [esp + 0x14]
push 0
push 0
push ecx
call fcn.004166a5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x180
ret
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x18]
push str._s_open_failed_
push eax
call fcn.00406f66
lea ecx, [esp + 0x20]
push ecx
push 0x41f4cc
call fcn.00406d51
add esp, 0x14
lea edx, [esp + 0x14]
push 0
push 0
push edx
call fcn.004166a5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x180
ret