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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62a37a
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x70a308]
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 dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x504], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x4f8], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x4f4], edx
mov dword [ebp - 4], 0
cmp byte [esi + 0x46], 0
je 0x4c1c0f
mov eax, dword [esi + 0x38]
mov ecx, dword [ebx + 0x3f0]
mov eax, dword [ecx + eax*4]
mov edi, dword [eax + 8]
jmp 0x4c1c2b
mov edx, dword [esi + 0x38]
mov eax, dword [ebx + 0x3f0]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 8]
push 0x2f
push eax
call fcn.005f9b50
add esp, 8
mov edi, eax
test edi, edi
je 0x4c23c7
lea ecx, [ebp - 0x4fc]
call fcn.004024e0
mov byte [ebp - 4], 1
cmp byte [esi + 0x46], 0
jne 0x4c1c49
inc edi
push edi
push 0x6524f0
lea ecx, [ebp - 0x4fc]
push ecx
call fcn.00402f60
add esp, 0xc
push 0x5c
push 0x2f
lea ecx, [ebp - 0x4fc]
call fcn.00422820
mov edx, dword [ebp - 0x4fc]
push edx
lea ecx, [ebp - 0x20]
call fcn.00406ea0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4c1c8a
lea eax, [ebp - 0x1c]
push 0x25
push eax
call fcn.005fa163
add esp, 8
test eax, eax
je 0x4c1cd7
lea ecx, [ebp - 0x4f0]
call fcn.005b0120
mov byte [ebp - 4], 3
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp - 0x4fc]
push ecx
lea ecx, [ebp - 0x4f0]
call fcn.005a1760
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4f0]
call fcn.005afb40
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4c1ce1
lea eax, [ebp - 0x1c]
push 0
push eax
lea edx, [ebp - 0x500]
push edx
call fcn.00402a50
add esp, 0xc
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x500]
push eax
lea ecx, [ebp - 0x50]
call fcn.00406ea0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x50]
test eax, eax
mov ecx, eax
jne 0x4c1d16
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4c1d20
lea eax, [ebp - 0x1c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c1d46
test dx, dx
je 0x4c1d42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c1d46
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c1d20
xor eax, eax
jmp 0x4c1d4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4c1d82
mov ecx, dword [ebp - 0x500]
push ecx
call fcn.0059c050
add esp, 4
test al, al
je 0x4c1d82
push 0xfde9
mov edx, dword [ebp - 0x500]
push edx
lea ecx, [ebp - 0x50]
call fcn.00401960
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x20]
call fcn.004017d0
push 0x2d
push 0x3a
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x2d
push 0x2a
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x2d
push 0x3f
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x2d
push 0x7c
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x2d
push 0x3c
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x2d
push 0x3e
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x2d
push 0x22
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x2d
push 0x25
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x5f
push 0x2f
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x5f
push 0x21
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x5f
push 0x40
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x5f
push 0x27
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x5f
push 0x2c
lea ecx, [ebp - 0x20]
call fcn.0040fae0
push 0x5f
push 0x3b
lea ecx, [ebp - 0x20]
call fcn.0040fae0
mov edi, dword [ebp - 0x20]
test edi, edi
mov edx, edi
jne 0x4c1e36
lea edx, [ebp - 0x1c]
mov eax, edx
lea esi, [eax + 2]
jmp 0x4c1e40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c1e40
sub eax, esi
sar eax, 1
xor ecx, ecx
mov dword [ebp - 0x514], ecx
cmp ecx, eax
jge 0x4c1e71
cmp word [edx + ecx*2], 0x20
jae 0x4c1e6e
mov esi, 0x2d
mov word [edx + ecx*2], si
mov edi, dword [ebp - 0x20]
inc ecx
jmp 0x4c1e51
test edi, edi
mov eax, edi
jne 0x4c1e7a
lea eax, [ebp - 0x1c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c1e80
sub eax, edx
sar eax, 1
mov edi, eax
cmp dword [ebx + 0x298], 0
je 0x4c1ea2
mov eax, dword [ebx + 0x298]
jmp 0x4c1ea8
lea eax, [ebx + 0x29c]
lea edx, [eax + 2]
jmp 0x4c1eb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c1eb0
sub eax, edx
sar eax, 1
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ecx
xor edx, edx
mov word [ebp - 0x28], dx
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x20]
cmp esi, ecx
mov ecx, esi
jne 0x4c1edd
lea ecx, [ebp - 0x1c]
mov edx, 0x5c
cmp word [ecx + edi*2 - 2], dx
mov edi, 0x64fbb8
je 0x4c1ef3
mov edi, 0x64f8c0
cmp dword [ebx + 0x298], 0
je 0x4c1f04
mov ecx, dword [ebx + 0x298]
jmp 0x4c1f0a
lea ecx, [ebx + 0x29c]
cmp word [ecx + eax*2 - 2], dx
mov edx, 0x64fbb8
je 0x4c1f1b
mov edx, 0x64f8c0
test esi, esi
mov ecx, esi
jne 0x4c1f24
lea ecx, [ebp - 0x1c]
cmp dword [ebx + 0x298], 0
je 0x4c1f35
mov eax, dword [ebx + 0x298]
jmp 0x4c1f3b
lea eax, [ebx + 0x29c]
push 0
push edi
push ecx
push edx
push eax
push str._s_s_s_s
lea ecx, [ebp - 0x2c]
call fcn.0043a620
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
mov eax, ebx
jne 0x4c1f5a
lea eax, [ebp - 0x28]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c1f60
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp - 0x518], edi
mov eax, dword [ebp - 0x4f8]
test eax, eax
je 0x4c1f97
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c1f84
sub eax, edx
sar eax, 1
mov esi, eax
jmp 0x4c1f99
xor esi, esi
mov eax, dword [ebp - 0x4f4]
test eax, eax
je 0x4c1fb7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c1fa6
sub eax, edx
sar eax, 1
jmp 0x4c1fb9
xor eax, eax
add esi, eax
mov dword [ebp - 0x508], esi
lea eax, [esi + edi]
cmp eax, 0x104
jle 0x4c213c
cmp dword [ebp - 0x4f8], 0
je 0x4c2043
mov eax, dword [ebp - 0x4f8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c1fe1
sub eax, edx
sar eax, 1
cmp eax, 0x32
jbe 0x4c2043
xor ecx, ecx
mov eax, dword [ebp - 0x4f8]
mov word [eax + 0x60], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2004
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x4f4], 0
je 0x4c2039
mov ecx, dword [ebp - 0x4f4]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4c2025
sub ecx, esi
sar ecx, 1
lea esi, [ecx + eax]
jmp 0x4c1fbb
xor ecx, ecx
lea esi, [ecx + eax]
jmp 0x4c1fbb
cmp dword [ebp - 0x4f4], 0
je 0x4c20b7
mov eax, dword [ebp - 0x4f4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2055
sub eax, edx
sar eax, 1
cmp eax, 0xa
jbe 0x4c20b7
xor edx, edx
mov eax, dword [ebp - 0x4f4]
mov word [eax + 0x10], dx
mov eax, dword [ebp - 0x4f8]
test eax, eax
je 0x4c2095
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2082
sub eax, edx
sar eax, 1
mov edx, eax
jmp 0x4c2097
xor edx, edx
mov eax, dword [ebp - 0x4f4]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c20a0
sub eax, esi
sar eax, 1
lea esi, [eax + edx]
jmp 0x4c1fbb
test ebx, ebx
mov eax, ebx
jne 0x4c20c0
lea eax, [ebp - 0x28]
push 0x5c
push eax
call fcn.005f80fb
add esp, 8
test eax, eax
je 0x4c20f5
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4c20de
lea eax, [ebp - 0x28]
push 0x5c
push eax
call fcn.005f80fb
add esp, 8
test eax, eax
je 0x4c20f5
xor edx, edx
mov word [eax + 2], dx
jmp 0x4c2110
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4c20ff
lea eax, [ebp - 0x28]
xor ecx, ecx
mov word [eax + edi*2 - 4], cx
mov edx, 0x5c
mov word [eax + edi*2 - 2], dx
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
mov eax, ebx
jne 0x4c211c
lea eax, [ebp - 0x28]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c2120
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [ebp - 0x518], edi
jmp 0x4c1fc1
mov dword [ebp - 0x50c], 0
cmp dword [0x70f5d4], 0
je 0x4c2167
test ebx, ebx
mov eax, ebx
jne 0x4c2158
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c2183
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
mov eax, ebx
jne 0x4c2170
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.0049bfe0
add esp, 8
test eax, eax
jne 0x4c2412
mov dword [ebp - 0x50c], 1
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4c2197
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402160
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x38]
test edx, edx
mov eax, edx
jne 0x4c21b0
lea eax, [ebp - 0x34]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c21b3
sub eax, esi
sar eax, 1
test edx, edx
mov ecx, edx
jne 0x4c21cb
lea ecx, [ebp - 0x34]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x4c21e3
push 0x64f8c0
lea ecx, [ebp - 0x38]
call fcn.00405210
mov edx, dword [ebp - 0x38]
test edx, edx
jne 0x4c21ea
lea edx, [ebp - 0x34]
push 0x5c
add edx, 6
push edx
call fcn.005fa163
add esp, 8
mov esi, eax
lea ebx, [ebx]
test esi, esi
je 0x4c2406
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4c2212
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
call fcn.00402160
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x44]
test eax, eax
mov ecx, eax
jne 0x4c222b
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4c2235
lea eax, [ebp - 0x34]
mov edx, esi
sub edx, eax
sar edx, 1
xor eax, eax
mov word [ecx + edx*2], ax
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4c224b
lea eax, [ebp - 0x40]
push 1
push eax
call fcn.0049bfe0
add esp, 8
test eax, eax
jne 0x4c23e5
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4c2268
lea eax, [ebp - 0x40]
push 1
push eax
call fcn.0049c1c0
add esp, 8
test eax, eax
jne 0x4c23e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x4f4]
call fcn.004024e0
mov bl, 9
mov byte [ebp - 4], bl
push 0
push 0
lea ecx, [ebp - 0x510]
push ecx
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x510]
push edx
mov eax, dword [0x71063c]
push eax
lea ecx, [ebp - 0x4f4]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp - 0x510]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x4f8]
call fcn.004024e0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4c22f3
lea eax, [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.00402a50
mov byte [ebp - 4], 0xb
push esi
mov ecx, dword [ebp - 0x504]
push ecx
mov edx, dword [ebp - 0x4f4]
push edx
push str._s__s_error__ld_n
lea eax, [ebp - 0x4f8]
push eax
call fcn.00402f60
add esp, 0x20
mov ecx, dword [0x70fbac]
test ecx, ecx
je 0x4c2341
push 1
mov edx, dword [ebp - 0x4f8]
push edx
call fcn.004b1ac0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x504]
call fcn.00402550
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x4f8]
call fcn.00402550
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x4f4]
call fcn.00402550
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
call fcn.004011f0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call fcn.004011f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.004011f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.004011f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x500]
call fcn.00402550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4fc]
call fcn.00402550
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.005f85e7
mov esp, ebp
pop ebp
ret 0x14
push 0x5c
add esi, 2
push esi
call fcn.005fa163
add esp, 8
mov esi, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
call fcn.004011f0
jmp 0x4c2200
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call fcn.004011f0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4c241c
lea eax, [ebp - 0x28]
push 0
mov ecx, dword [ebp - 0x4f4]
push ecx
mov edx, dword [ebp - 0x4f8]
push edx
push eax
push 0x652d80
mov esi, dword [ebp - 0x504]
mov ecx, esi
call fcn.00411bf0
nop
mov eax, dword [esi]
test eax, eax
jne 0x4c2449
lea eax, [esi + 4]
push 0x6575f8
push eax
call fcn.005fa8fb
add esp, 8
test eax, eax
je 0x4c246e
push 0x64f8c0
push 0x6575f8
mov ecx, esi
call fcn.0043a8a0
jmp 0x4c2440
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.004011f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.004011f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x500]
call fcn.00402550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4fc]
call fcn.00402550
mov dword [ebp - 4], 0xffffffff
jmp 0x4c23c7