Function at 0x40a610
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4533b0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x468400]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468400]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x78]
cmp byte [ebp + 0xd0], 0
mov eax, dword [esp + 0x80]
mov esi, ecx
mov edi, edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
lea ebx, [ebp + 0xd4]
jne 0x40a692
push ebp
call fcn.0040c8c0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
push ecx
push edx
push eax
push esi
push ebp
mov ebx, edi
call fcn.0040a930
jmp 0x40a902
lea ecx, [esp + 0x18]
push ecx
mov edi, ebx
mov byte [esp + 0x1c], 0x2e
call fcn.0040e130
push 0xffffffffffffffff
mov ecx, eax
lea esi, [esp + 0x30]
mov edx, ebx
mov dword [esp + 0x2c], eax
call fcn.0040d860
mov ecx, str..tmp
mov edi, esi
mov dword [esp + 0x70], 0
call fcn.004057b0
test al, al
je 0x40a769
push 0x45b650
mov eax, ebp
call fcn.0040c7c0
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
xor ecx, ecx
lea esi, [esp + 0x4c]
mov edx, ebx
call fcn.0040d860
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x7c], 1
call fcn.004043f0
mov byte [esp + 0x70], 0
cmp dword [esp + 0x60], 0x10
jb 0x40a71d
mov eax, dword [esp + 0x4c]
push eax
call fcn.00419a12
add esp, 4
lea ecx, [esp + 0x18]
push ecx
mov edi, ebx
mov byte [esp + 0x1c], 0x2e
call fcn.0040e130
push 0xffffffffffffffff
mov ecx, eax
lea esi, [esp + 0x4c]
mov edx, ebx
call fcn.0040d860
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 2
call fcn.004043f0
mov byte [esp + 0x70], 0
cmp dword [esp + 0x60], 0x10
jb 0x40a769
mov edx, dword [esp + 0x4c]
push edx
call fcn.00419a12
add esp, 4
mov ecx, str..exe
lea edi, [esp + 0x2c]
call fcn.004057b0
test al, al
jne 0x40a8b7
mov ecx, str..xml
call fcn.004057b0
test al, al
jne 0x40a8b7
mov ecx, str..dll
call fcn.004057b0
test al, al
jne 0x40a8b7
mov ecx, str..ini
call fcn.004057b0
test al, al
jne 0x40a8b7
push 0x45b6d8
mov eax, ebp
call fcn.0040c7c0
add esp, 4
mov ecx, str..wdf
call fcn.004057b0
mov byte [ebp + 0x145], al
test al, al
je 0x40a84d
push ebx
mov edi, str..csv
lea esi, [esp + 0x4c]
call fcn.00408580
add esp, 4
mov byte [esp + 0x70], 3
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x40a7fe
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x40a838
mov eax, dword [esp + 0x20]
push eax
lea esi, [ebp + 0x148]
push ebp
call fcn.0040ca60
test al, al
jne 0x40a83f
lea ecx, [esp + 0x48]
call fcn.004037f0
lea ecx, [esp + 0x2c]
call fcn.004037f0
xor al, al
jmp 0x40a902
mov byte [ebp + 0x145], 0
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 0
call fcn.004037f0
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea esi, [ebp + 0x10c]
push ebp
mov eax, esi
call fcn.0040aa60
test al, al
je 0x40a828
push ebx
mov edx, str..ofif.csv
call fcn.00408710
lea edi, [ebp + 0xf0]
push edi
push ebp
mov ecx, ebx
call fcn.0040b440
push ebx
push esi
mov edx, edi
mov ecx, ebp
call fcn.0040b620
test al, al
je 0x40a828
push ebp
call fcn.0040c870
lea ecx, [esp + 0x2c]
call fcn.004037f0
mov al, 1
jmp 0x40a902
push 0x45b69c
mov eax, ebp
call fcn.0040c7c0
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x28]
add esp, 4
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push ebp
call fcn.0040a930
cmp dword [esp + 0x44], 0x10
mov bl, al
jb 0x40a900
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00419a12
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00436724
add esp, 0x60
ret 0x10