Function at 0x42dc80
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46d61d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x368
mov eax, dword [0x480630]
push ebx
push esi
mov ebx, ecx
xor eax, ebp
push edi
lea ecx, [ebx + 0x30]
mov dword [esp + 0x36c], eax
call fcn.00434920
test eax, eax
je 0x42e179
call fcn.004178f0
mov edi, eax
mov dword [esp + 0x24], edi
call fcn.004154a0
mov edx, dword [0x4800d8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x37c], 0
mov dword [esp + 0x14], edx
push 1
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
mov byte [esp + 0x384], 1
call fcn.0040bb30
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00404b00
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x4708a4
push 0x4708a4
call esi
push eax
lea ecx, [esp + 0x18]
call fcn.00403ab0
mov eax, dword [ebp + 8]
test eax, eax
je 0x42dd61
mov eax, dword [ebx + 0x4c]
add eax, 4
mov eax, dword [eax]
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00403ab0
push 0x4708a4
push 0x4708a4
call esi
push eax
lea ecx, [esp + 0x18]
call fcn.00403ab0
mov eax, dword [ebx + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x42dd9a
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00403ab0
push 0x5c
lea ecx, [esp + 0x14]
call fcn.00404b00
push 0x4708a4
push 0x4708a4
call esi
push eax
lea ecx, [esp + 0x18]
call fcn.00403ab0
mov eax, dword [ebx + 4]
mov edx, dword [eax - 8]
lea esi, [ebx + 4]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00403ab0
mov eax, dword [0x4800d8]
mov dword [esp + 0x1c], eax
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x380], 2
call fcn.00404cd0
push 0x5c
lea ecx, [esp + 0x20]
call fcn.00404b00
push esi
push 0x4708a4
lea ecx, [esp + 0x20]
push ecx
call fcn.0040ab30
mov eax, dword [eax]
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x384], 3
call fcn.00403ab0
mov eax, dword [esp + 0x18]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x37c], 2
je 0x42de33
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42de33
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
push 0x104
lea ecx, [esp + 0x18]
call fcn.004042d0
test eax, eax
je 0x42de57
mov eax, dword [esp + 0x14]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
mov edx, dword [edi]
push 0
push 0x104
push eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, edi
call dword [edx + 0xfc]
lea ecx, [esp + 0x14]
call fcn.00404410
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esi - 8], eax
mov byte [eax + esi], 0
mov eax, dword [ebx + 0x28]
test eax, eax
mov dword [esp + 0x28], 0
jne 0x42dea4
mov edx, dword [edi]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call dword [edx + 0x34]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x42def7
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x30], 3
jne 0x42def7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42def7
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
call fcn.0042d050
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x42dee0
mov ecx, dword [esp + 0x28]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x38]
push str.Skip_Checking_For_Attribute_Data...
push 0x80
call fcn.004047f0
add esp, 8
jmp 0x42e15e
mov eax, dword [ebx + 0x2c]
cmp eax, 2
jne 0x42df45
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42e1b6
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
call fcn.0042d050
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x42df2e
mov ecx, dword [esp + 0x28]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x38]
push str.Skip_Checking_For_Attribute_No_Replace...
push 0x80
call fcn.004047f0
add esp, 8
jmp 0x42e15e
cmp eax, 1
jne 0x42e1b6
mov eax, dword [0x4800d8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
push 0x104
lea ecx, [esp + 0x1c]
mov byte [esp + 0x380], 5
call fcn.004042d0
test eax, eax
je 0x42df87
mov eax, dword [esp + 0x18]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
mov edx, dword [edi]
push 0x104
push eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, edi
call dword [edx + 0x18]
lea ecx, [esp + 0x18]
call fcn.00404410
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esi - 8], eax
lea ecx, [esp + 0x30]
mov byte [eax + esi], 0
call fcn.00402db0
lea ecx, [esp + 0x30]
mov byte [esp + 0x37c], 6
call fcn.00404910
xor eax, eax
mov byte [esp + 0x260], 0
mov ecx, 0x40
lea edi, [esp + 0x261]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x158], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x159]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x260]
stosw word es:[edi], ax
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x42e038
lea edx, [esp + 0x158]
push edx
push 0
push 0x473560
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x30]
call fcn.00402f50
lea eax, [esp + 0x158]
lea edx, [eax + 1]
jmp 0x42e050
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42e050
sub eax, edx
mov dword [esp + 0x2c], eax
je 0x42e0b9
mov edx, dword [esp + 0x14]
push 0
push 1
push 0
lea ecx, [esp + 0x164]
push ecx
push edx
call fcn.0044a6d0
mov eax, dword [esp + 0x38]
mov edi, dword [eax]
add esp, 0x14
push 0x104
push 0x104
lea ecx, [esp + 0x28]
call fcn.00404360
push eax
lea ecx, [esp + 0x160]
push ecx
mov ecx, dword [esp + 0x30]
call dword [edi + 0x18]
push 0
lea edx, [esp + 0x15c]
push 1
push edx
call fcn.0044a020
add esp, 0xc
jmp 0x42e0df
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
push 0x104
push 0x104
lea ecx, [esp + 0x28]
call fcn.00404360
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x30]
call dword [edi + 0x18]
lea ecx, [esp + 0x20]
call fcn.00404410
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov dword [edi - 8], eax
push esi
mov byte [eax + edi], 0
call fcn.00457f3f
add esp, 8
test eax, eax
jg 0x42e183
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
call fcn.0042d050
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x42e129
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x38]
push str.Skip_Checking_For_Attribute_Replace_Lowver...
push 0x80
call fcn.004047f0
add esp, 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x37c], 5
call fcn.00402ef0
lea ecx, [esp + 0x20]
call fcn.004309a0
lea ecx, [esp + 0x18]
call fcn.004309a0
lea ecx, [esp + 0x1c]
call fcn.004309a0
lea ecx, [esp + 0x14]
call fcn.004309a0
lea ecx, [esp + 0x10]
call fcn.004309a0
mov eax, 1
jmp 0x42e240
lea ecx, [esp + 0x30]
mov byte [esp + 0x37c], 5
call fcn.00402ef0
lea ecx, [esp + 0x20]
call fcn.004309a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x37c], 2
call fcn.004309a0
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x42e1c9
mov ecx, dword [esp + 0x28]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4800dc]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42e1f3
lea edi, [eax - 0xc]
push edi
call ebx
test eax, eax
jg 0x42e1f3
push edi
call fcn.00457c3f
add esp, 4
mov ecx, dword [0x4800dc]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x42e213
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x42e213
push esi
call fcn.00457c3f
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42e23e
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x42e23e
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00457c3f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x374]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004570de
mov esp, ebp
pop ebp
ret 4