Function at 0x40d5e0
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a0b06
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov dword [esp + 0xb8], ebx
lea ecx, [esp + 0x58]
mov byte [esi + 0x16d], bl
call fcn.0043d1a0
test al, al
je 0x40d998
push 4
push str..xml
lea ecx, [esp + 0x60]
call fcn.004035d0
mov edi, dword [esp + 0x5c]
mov ebp, 8
cmp dword [esp + 0x70], ebp
jae 0x40d675
lea edi, [esp + 0x5c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d69e
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
jae 0x40d695
lea eax, [esp + 0x5c]
push eax
call fcn.00478f9d
add esp, 4
lea eax, [esp + 0x58]
push eax
call fcn.0043cb10
add esp, 4
test eax, eax
jne 0x40d99d
mov byte [esi + 0x16d], 1
mov esi, vtable.CAUDeviceListXML.0
mov dword [esp + 0x44], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 0x5c]
mov byte [esp + 0xbc], 1
call fcn.0043ee30
test eax, eax
je 0x40d713
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], bl
call fcn.0043eda0
cmp dword [esp + 0x70], ebp
jb 0x40d70c
mov edx, dword [esp + 0x5c]
push edx
call fcn.0045a870
add esp, 4
xor eax, eax
jmp 0x40d9b4
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
jae 0x40d721
lea eax, [esp + 0x5c]
push eax
call fcn.00478f9d
mov edi, 7
add esp, 4
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
lea ecx, [esp + 0x74]
mov byte [esp + 0xb8], 2
call fcn.0043d100
mov byte [esp + 0x1b], bl
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
mov byte [esp + 0xb8], 4
cmp dword [esp + 0x8c], ebp
mov esi, dword [esp + 0x78]
jae 0x40d796
lea esi, [esp + 0x78]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d81c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x78]
push ecx
call fcn.0043da00
add esp, 8
test al, al
je 0x40d81c
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x94]
call fcn.0043eef0
test eax, eax
je 0x40d81c
lea ecx, [esp + 0x90]
call fcn.00401620
lea ecx, [esp + 0x30]
mov byte [esp + 0xb8], 2
call fcn.0043eda0
lea ecx, [esp + 0x74]
call fcn.00401620
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], bl
call fcn.0043eda0
lea ecx, [esp + 0x58]
call fcn.00401620
xor eax, eax
jmp 0x40d9b4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x4c]
call fcn.0040e070
mov byte [esp + 0xb8], 5
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp esi, eax
jbe 0x40d847
call fcn.00478a25
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x20]
jmp 0x40d850
cmp dword [esp + 0x24], eax
mov ebp, eax
jbe 0x40d85d
call fcn.00478a25
cmp edi, ebx
je 0x40d869
lea ecx, [esp + 0x20]
cmp edi, ecx
je 0x40d86e
call fcn.00478a25
cmp esi, ebp
je 0x40d8b4
cmp edi, ebx
jne 0x40d87b
call fcn.00478a25
cmp esi, dword [edi + 8]
jb 0x40d885
call fcn.00478a25
push ebx
mov eax, esi
call fcn.0040e240
push eax
lea edx, [esp + 0x34]
push edx
call fcn.0043f630
test al, al
je 0x40d8a1
mov byte [esp + 0x1b], 1
cmp esi, dword [edi + 8]
jb 0x40d8ab
call fcn.00478a25
mov eax, dword [esp + 0x28]
add esi, 0x10
jmp 0x40d850
cmp byte [esp + 0x1b], bl
je 0x40d908
lea eax, [esp + 0x30]
push eax
call fcn.0043efb0
mov esi, eax
call fcn.004532b0
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x90]
push ecx
push esi
mov ecx, eax
call edx
cmp esi, ebx
je 0x40d8eb
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x94]
push ecx
call fcn.0043d4c0
add esp, 8
mov dword [esp + 0x1c], 4
lea esi, [esp + 0x20]
call fcn.0040e7d0
mov edi, 8
cmp dword [esp + 0xa8], edi
jb 0x40d92f
mov edx, dword [esp + 0x94]
push edx
call fcn.0045a870
add esp, 4
mov esi, 7
lea ecx, [esp + 0x30]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
mov byte [esp + 0xb8], 2
call fcn.0043eda0
cmp dword [esp + 0x8c], edi
jb 0x40d971
mov eax, dword [esp + 0x78]
push eax
call fcn.0045a870
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
mov byte [esp + 0xb8], bl
call fcn.0043eda0
mov ebp, edi
jmp 0x40d99d
mov ebp, 8
cmp dword [esp + 0x70], ebp
jb 0x40d9b0
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0045a870
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00478599
add esp, 0xa8
ret