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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3e1d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x62c330]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x224], 0
call fcn.0040c0b0
push 0xb8
lea eax, [ebp - 0x1d4]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00578a00
add esp, 8
lea ecx, [ebp - 0x1d4]
call fcn.0042efd0
push 0xa8
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00578a00
add esp, 8
lea ecx, [ebp - 0x11c]
call fcn.0042fbd0
sub esp, 0x18
mov byte [ebp - 4], 2
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebx], 0
jne 0x42de67
xor ecx, ecx
jmp 0x42de7f
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp - 0x1d8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42de72
sub ecx, dword [ebp - 0x1d8]
push ecx
push ebx
mov ecx, edx
call fcn.00404be0
lea ecx, [ebp - 0x2c]
call fcn.0042dbc0
add esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42deb6
test al, 0x10
jne 0x42df90
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0042c760
test eax, eax
je 0x42df90
lea eax, [ebp - 0x2c]
mov edx, 0x6012a8
push eax
lea ecx, [ebp - 0x208]
call fcn.00408180
add esp, 4
push 0x6012a0
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1f0]
call fcn.00405ae0
mov edi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x42df33
cmp dword [ebp - 0x5c], 0x10
jb 0x42df18
push dword [ebp - 0x70]
call fcn.0044ec68
add esp, 4
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.004045a0
cmp dword [ebp - 0x1dc], 0x10
jb 0x42df4a
push dword [ebp - 0x1f0]
call fcn.0044ec68
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1f4], 0x10
mov dword [ebp - 0x1dc], 0xf
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 0x1f0], 0
jb 0x42df80
push dword [ebp - 0x208]
call fcn.0044ec68
add esp, 4
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x3c], 3
jmp 0x42e474
push 0x40
push 0x21
push edi
lea ecx, [ebp - 0x1c4]
call fcn.0042ff10
test eax, eax
lea ecx, [ebp - 0x1d4]
mov eax, dword [ebp - 0x1d4]
mov edx, 4
mov eax, dword [eax + 4]
jne 0x42dfca
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42dfd4
or eax, edx
jmp 0x42dfd4
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.004042d0
mov eax, dword [ebp - 0x1d4]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x1c8], 6
je 0x42e21d
lea ecx, [ebp - 0x1c4]
call fcn.0042ffd0
test eax, eax
jne 0x42e02a
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42e022
or eax, 4
push 0
push eax
call fcn.004042d0
lea ecx, [ebp - 0x118]
call fcn.0042ffd0
test eax, eax
jne 0x42e061
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42e059
or eax, 4
push 0
push eax
call fcn.004042d0
cmp byte [edi], 0
mov dword [ebp - 0x1dc], 0xf
mov dword [ebp - 0x1e0], 0
mov byte [ebp - 0x1f0], 0
jne 0x42e085
xor ecx, ecx
jmp 0x42e099
mov ecx, edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42e090
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x1f0]
call fcn.00404be0
lea eax, [ebp - 0x1f0]
mov byte [ebp - 4], 5
push eax
mov edx, 0x6012d0
lea ecx, [ebp - 0x208]
call fcn.00405a50
add esp, 4
push 0x6012a0
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.00405ae0
mov edi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x42e112
cmp dword [ebp - 0x5c], 0x10
jb 0x42e0f7
push dword [ebp - 0x70]
call fcn.0044ec68
add esp, 4
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.004045a0
cmp dword [ebp - 0x20c], 0x10
jb 0x42e129
push dword [ebp - 0x220]
call fcn.0044ec68
add esp, 4
cmp dword [ebp - 0x1f4], 0x10
mov dword [ebp - 0x20c], 0xf
mov dword [ebp - 0x210], 0
mov byte [ebp - 0x220], 0
jb 0x42e15b
push dword [ebp - 0x208]
call fcn.0044ec68
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1dc], 0x10
mov dword [ebp - 0x1f4], 0xf
mov dword [ebp - 0x1f8], 0
mov byte [ebp - 0x208], 0
jb 0x42e191
push dword [ebp - 0x1f0]
call fcn.0044ec68
add esp, 4
lea eax, [ebp - 0x74]
mov byte [ebp - 0x74], 0
push eax
mov ecx, esi
mov dword [ebp - 0x3c], 1
call fcn.004102a0
cmp dword [ebp - 0x18], 0x10
jb 0x42e1b8
push dword [ebp - 0x2c]
call fcn.0044ec68
add esp, 4
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.0042d9e0
lea ecx, [ebp - 0x1d4]
call fcn.0042caa0
cmp dword [ebp - 0x44], 0x10
jb 0x42e1f1
push dword [ebp - 0x58]
call fcn.0044ec68
add esp, 4
cmp dword [ebp - 0x5c], 0x10
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x42e4c0
push dword [ebp - 0x70]
call fcn.0044ec68
add esp, 4
jmp 0x42e4c0
push 0x40
push 0x22
push ebx
lea ecx, [ebp - 0x118]
call fcn.0042ff10
test eax, eax
lea ecx, [ebp - 0x11c]
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
jne 0x42e253
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42e262
or eax, 4
jmp 0x42e262
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.004042d0
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x110], 6
je 0x42e3f0
lea ecx, [ebp - 0x118]
call fcn.0042ffd0
test eax, eax
jne 0x42e2b8
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42e2b0
or eax, 4
push 0
push eax
call fcn.004042d0
lea ecx, [ebp - 0x1c4]
call fcn.0042ffd0
test eax, eax
jne 0x42e2ef
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42e2e7
or eax, 4
push 0
push eax
call fcn.004042d0
push ebx
lea ecx, [ebp - 0x1f0]
call fcn.00404470
push eax
mov edx, 0x6012d8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x220]
call fcn.00405a50
add esp, 4
push 0x6012a0
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x208]
call fcn.00405ae0
mov edi, eax
add esp, 4
lea eax, [ebp - 0x70]
cmp eax, edi
je 0x42e361
cmp dword [ebp - 0x5c], 0x10
jb 0x42e346
push dword [ebp - 0x70]
call fcn.0044ec68
add esp, 4
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.004045a0
cmp dword [ebp - 0x1f4], 0x10
jb 0x42e378
push dword [ebp - 0x208]
call fcn.0044ec68
add esp, 4
cmp dword [ebp - 0x20c], 0x10
mov dword [ebp - 0x1f4], 0xf
mov dword [ebp - 0x1f8], 0
mov byte [ebp - 0x208], 0
jb 0x42e3aa
push dword [ebp - 0x220]
call fcn.0044ec68
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1dc], 0x10
mov dword [ebp - 0x20c], 0xf
mov dword [ebp - 0x210], 0
mov byte [ebp - 0x220], 0
jb 0x42e3e0
push dword [ebp - 0x1f0]
call fcn.0044ec68
add esp, 4
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x3c], 2
jmp 0x42e474
lea eax, [ebp - 0x1c4]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0042ec10
lea ecx, [ebp - 0x118]
call fcn.0042ffd0
test eax, eax
jne 0x42e439
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42e431
or eax, 4
push 0
push eax
call fcn.004042d0
lea ecx, [ebp - 0x1c4]
call fcn.0042ffd0
test eax, eax
jne 0x42e470
mov eax, dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x42e468
or eax, 4
push 0
push eax
call fcn.004042d0
mov byte [ebp - 0x74], 1
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.004102a0
cmp dword [ebp - 0x18], 0x10
jb 0x42e490
push dword [ebp - 0x2c]
call fcn.0044ec68
add esp, 4
lea ecx, [ebp - 0x11c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.0042d9e0
lea ecx, [ebp - 0x1d4]
call fcn.0042caa0
lea ecx, [ebp - 0x74]
call fcn.00406710
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005745f2
mov esp, ebp
pop ebp
ret