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

Disassembly:
push 0xffffffffffffffff
push 0x46c2b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
mov eax, dword [0x480630]
xor eax, esp
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x290]
mov dword [esp + 0x27c], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ecx
call fcn.0040ee30
mov eax, dword [esi + 0x198]
mov ecx, dword [eax - 0xc]
xor ebx, ebx
cmp ecx, ebx
jl 0x412e31
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x412e45
mov ecx, dword [0x4800d8]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404d30
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.Data
push str.Data
mov dword [esp + 0x290], ebx
call ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.00403ab0
mov byte [esp + 0x270], 0x5c
mov dword [esp + 0x274], ebx
mov dword [esp + 0x278], ebx
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x28c], 1
call fcn.00408bb0
test eax, eax
jne 0x412ecc
mov eax, dword [esp + 0x274]
cmp eax, ebx
mov dword [esp + 0x278], ebx
je 0x412ebd
cmp eax, 0xffffffff
je 0x412ebd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x274], ebx
mov eax, dword [0x4800dc]
lea edx, [esi - 0xc]
cmp edx, eax
jmp 0x41313b
mov esi, dword [0x4800d8]
mov dword [esp + 0xc], esi
mov byte [esp + 0x288], 2
push edi
nop
cmp dword [esp + 0x27c], ebx
je 0x4130ac
mov eax, dword [esp + 0x30]
shr eax, 4
and eax, 1
cmp eax, ebx
je 0x4130ac
cmp byte [esp + 0x5c], 0x2e
jne 0x412f20
mov al, byte [esp + 0x5d]
cmp al, bl
je 0x4130ac
cmp al, 0x2e
jne 0x412f20
cmp byte [esp + 0x5e], bl
je 0x4130ac
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.0040acb0
lea ecx, [esp + 0x14]
push ecx
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x294], 3
mov byte [esp + 0x1c], 0x5c
call fcn.00403ab0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
call fcn.0040ac00
mov eax, dword [eax]
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x294], 4
call fcn.00403ab0
mov eax, dword [esp + 0x20]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x28c], 3
je 0x412fa8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x412fa8
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
push str..ini
push str..ini
call ebp
push eax
lea ecx, [esp + 0x24]
call fcn.00403ab0
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x413081
call fcn.004178f0
push 0x104
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004042d0
test eax, eax
je 0x412ffc
mov eax, dword [esp + 0x10]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], bl
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 ebp
mov dword [esi - 8], eax
mov byte [eax + esi], bl
cmp dword [esi - 8], ebx
jle 0x413081
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x413081
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
call fcn.0040a560
test eax, eax
je 0x41307d
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x34]
call fcn.0040ac00
mov ecx, dword [esp + 0x24]
push eax
mov byte [esp + 0x290], 5
call fcn.00412770
lea ecx, [esp + 0x28]
call fcn.004309a0
mov esi, dword [esp + 0x10]
mov eax, dword [0x4800dc]
lea edx, [edi - 0xc]
cmp edx, eax
mov byte [esp + 0x28c], 2
je 0x4130ac
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4130ac
push edi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x278]
cmp eax, ebx
je 0x4130e2
cmp dword [esp + 0x27c], ebx
je 0x4130e2
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, ebx
mov dword [esp + 0x27c], eax
jne 0x412ee0
mov eax, dword [esp + 0x278]
mov ecx, dword [0x4800dc]
lea edx, [esi - 0xc]
cmp edx, ecx
pop edi
je 0x41310e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413107
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x274]
cmp eax, ebx
mov dword [esp + 0x278], ebx
je 0x41312c
cmp eax, 0xffffffff
je 0x41312c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x274], ebx
mov esi, dword [esp + 0x14]
mov ecx, dword [0x4800dc]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x413154
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x413154
push esi
call fcn.00457c3f
add esp, 4
mov ecx, dword [esp + 0x280]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x274]
pop ebx
xor ecx, esp
call fcn.004570de
add esp, 0x280
ret 4