Function at 0x413180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x46c302
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x270
mov eax, dword [0x480630]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x27c], eax
mov eax, dword [edi + 0x198]
mov ecx, dword [eax - 0xc]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x24], edi
jl 0x4131d2
mov dword [esp + 0x18], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4131e6
mov ecx, dword [0x4800d8]
mov dword [esp + 0x18], ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404d30
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.Data
push str.Data
mov dword [esp + 0x290], ebp
call ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00403ab0
mov byte [esp + 0x270], 0x5c
mov dword [esp + 0x274], ebp
mov dword [esp + 0x278], ebp
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x28c], 1
call fcn.00408bb0
test eax, eax
jne 0x41328b
mov eax, dword [esp + 0x274]
cmp eax, ebp
mov dword [esp + 0x278], ebp
je 0x41325e
cmp eax, 0xffffffff
je 0x41325e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x274], ebp
mov eax, dword [0x4800dc]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x413281
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413281
push esi
call fcn.00457c3f
add esp, 4
mov eax, 1
jmp 0x413566
lea ecx, [edi + 0x1bc]
call fcn.0040ee30
mov esi, dword [0x4800d8]
mov dword [esp + 0x10], esi
mov byte [esp + 0x288], 2
jmp 0x4132b0
cmp dword [esp + 0x278], ebp
je 0x4134ab
mov eax, dword [esp + 0x2c]
shr eax, 4
and eax, 1
cmp eax, ebp
je 0x4134ab
cmp byte [esp + 0x58], 0x2e
jne 0x4132f2
mov al, byte [esp + 0x59]
test al, al
je 0x4134ab
cmp al, 0x2e
jne 0x4132f2
mov al, byte [esp + 0x5a]
test al, al
je 0x4134ab
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040acb0
lea ecx, [esp + 0x14]
push ecx
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x290], 3
mov byte [esp + 0x1c], 0x5c
call fcn.00403ab0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x30]
call fcn.0040ac00
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x290], 4
call fcn.00403ab0
mov eax, dword [esp + 0x28]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x288], 3
je 0x41337a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41337a
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
push str..ini
push str..ini
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00403ab0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x30]
call fcn.0040ac00
mov edi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov byte [esp + 0x28c], 5
call ebp
cmp eax, 0xffffffff
je 0x413457
call fcn.004178f0
push 0x104
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004042d0
test eax, eax
je 0x4133e7
mov eax, dword [esp + 0x10]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
mov edx, dword [esi]
push edi
push 0x104
push eax
push 0x4708d8
push str.INSTALLPATH
push str.SETUP
mov ecx, esi
call dword [edx + 0x90]
lea ecx, [esp + 0x10]
call fcn.00404410
mov esi, dword [esp + 0x10]
push esi
call ebx
mov dword [esi - 8], eax
mov byte [eax + esi], 0
mov eax, dword [esi - 8]
test eax, eax
jle 0x413457
push esi
call ebp
test al, 0x10
je 0x413457
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0040a560
test eax, eax
je 0x413453
lea ecx, [esp + 0x20]
push ecx
lea eax, [esi + 0x1bc]
push eax
mov ecx, esi
call fcn.00412870
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4800dc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41347f
lea ebp, [eax - 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41347f
push ebp
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800dc]
lea eax, [edi - 0xc]
cmp eax, ecx
mov byte [esp + 0x288], 2
je 0x4134ab
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4134ab
push edi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x274]
xor ebp, ebp
cmp eax, ebp
je 0x4134e3
cmp dword [esp + 0x278], ebp
je 0x4134e3
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, ebp
mov dword [esp + 0x278], eax
jne 0x4132b0
mov eax, dword [esp + 0x274]
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x1c4], ebp
sete cl
movzx edi, cl
mov ecx, dword [0x4800dc]
lea edx, [esi - 0xc]
cmp edx, ecx
je 0x41351e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413517
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x274]
cmp eax, ebp
mov dword [esp + 0x278], ebp
je 0x41353c
cmp eax, 0xffffffff
je 0x41353c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x274], ebp
mov esi, dword [esp + 0x18]
mov ecx, dword [0x4800dc]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x413564
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413564
push esi
call fcn.00457c3f
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x280]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x270]
pop ebx
xor ecx, esp
call fcn.004570de
add esp, 0x27c
ret