Function at 0x4056b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a0b6b
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4c2c40]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2c40]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor ebx, ebx
mov ebp, 7
mov edi, ecx
mov esi, edx
mov byte [esp + 0x1b], bl
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
mov dword [esp + 0xc0], ebx
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
call fcn.00401b70
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0xc4], 1
mov ecx, dword [edi + 0x5c]
push esi
call fcn.004130b0
mov ecx, dword [edi + 0x20]
add esp, 8
xor esi, esi
cmp ecx, 8
jne 0x405ae1
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
lea ecx, [esp + 0x60]
mov byte [esp + 0xc0], 2
call fcn.0043d100
mov dword [esp + 0x20], vtable.CAUDeviceListXML.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov byte [esp + 0xc0], 4
mov esi, 8
cmp dword [esp + 0x78], esi
mov byte [esp + 0x1a], bl
jb 0x4057c6
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x1c], ecx
jmp 0x4057ce
lea edx, [esp + 0x64]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405851
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.0043da00
add esp, 8
test al, al
je 0x405851
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x80]
call fcn.0043eef0
test eax, eax
jne 0x405851
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x28]
call fcn.0040e070
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x405839
mov ecx, dword [esp + 0x3c]
sub ecx, eax
sar ecx, 4
je 0x405839
mov byte [esp + 0x1a], 1
lea esi, [esp + 0x34]
call fcn.0040e7d0
cmp byte [esp + 0x1a], bl
mov esi, 8
jne 0x40597e
lea edx, [esp + 0x44]
push edx
call fcn.00433900
add esp, 4
test al, al
jne 0x40597e
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x1e]
mov byte [esp + 0x1e], bl
call fcn.00411890
add esp, 4
cmp eax, 2
jne 0x4058c0
lea ecx, [esp + 0x7c]
call fcn.00401620
lea ecx, [esp + 0x20]
mov byte [esp + 0xc0], 2
call fcn.0043eda0
lea ecx, [esp + 0x60]
call fcn.00401620
lea ecx, [esp + 0x44]
call fcn.00401620
lea ecx, [esp + 0x98]
call fcn.00401620
jmp 0x405b92
cmp byte [esp + 0x1a], bl
je 0x4058d3
lea ecx, [esp + 0x44]
push ecx
call fcn.00433950
add esp, 4
mov byte [esp + 0x1b], 1
mov edx, dword [edi + 0x164]
mov dword [edx], 3
cmp dword [esp + 0x94], 8
mov esi, 4
jb 0x405903
mov eax, dword [esp + 0x80]
push eax
call fcn.0045a870
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov byte [esp + 0xc0], 2
call fcn.0043eda0
mov byte [esp + 0xc0], 1
cmp dword [esp + 0x78], 8
jb 0x405946
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0045a870
add esp, 4
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
mov ecx, dword [0x4c8544]
cmp ecx, ebx
jne 0x405b0b
push 4
call fcn.0045a845
add esp, 4
cmp eax, ebx
je 0x405b01
mov dword [eax], vtable.CWinAUSystemUtil.0
jmp 0x405b03
cmp dword [edi + 0x78], 1
jne 0x405a3e
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x98]
push eax
call fcn.004117e0
add esp, 4
cmp eax, 2
jne 0x4058d8
cmp dword [esp + 0x94], esi
jb 0x4059bd
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0045a870
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov byte [esp + 0xc0], 2
call fcn.0043eda0
cmp dword [esp + 0x78], esi
jb 0x4059f7
mov edx, dword [esp + 0x64]
push edx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0x5c], esi
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
jb 0x405a17
mov eax, dword [esp + 0x48]
push eax
call fcn.0045a870
add esp, 4
cmp dword [esp + 0xb0], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jb 0x405b92
mov ecx, dword [esp + 0x9c]
push ecx
jmp 0x405b8a
cmp dword [esp + 0x94], esi
jb 0x405a57
mov edx, dword [esp + 0x80]
push edx
call fcn.0045a870
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x94], ebp
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
mov byte [esp + 0xc0], 2
call fcn.0043eda0
cmp dword [esp + 0x78], esi
jb 0x405a91
mov eax, dword [esp + 0x64]
push eax
call fcn.0045a870
add esp, 4
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], bx
cmp dword [esp + 0x5c], esi
jb 0x405ab1
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0xb0], esi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jb 0x405ad7
mov edx, dword [esp + 0x9c]
push edx
call fcn.0045a870
add esp, 4
mov eax, 1
jmp 0x405b94
lea eax, [esp + 0x98]
push eax
call fcn.004117e0
add esp, 4
cmp eax, 2
jne 0x405953
mov esi, 8
jmp 0x405a9e
xor eax, eax
mov ecx, eax
mov dword [0x4c8544], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
push edi
push 0x4066f0
call edx
call fcn.0041a8a0
test eax, eax
jne 0x405b3c
cmp byte [edi + 0x16c], bl
je 0x405b3c
mov eax, dword [edi + 0x164]
mov esi, 4
mov dword [eax], 3
jmp 0x405b54
cmp dword [edi + 0x20], ebp
jne 0x405b45
xor esi, esi
jmp 0x405b54
cmp byte [esp + 0x1b], 1
jne 0x405b54
cmp dword [edi + 0x78], 1
je 0x405b54
mov esi, ebp
mov edi, 8
cmp dword [esp + 0x5c], edi
jb 0x405b6c
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0045a870
add esp, 4
cmp dword [esp + 0xb0], edi
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jb 0x405b92
mov edx, dword [esp + 0x9c]
push edx
call fcn.0045a870
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00478599
add esp, 0xb0
ret