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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, ecx
sub esp, 0x51c
mov esi, dword [ebp + 8]
mov dword [esp], esi
call fcn.004b95d0
test eax, eax
js 0x4b6226
mov ebx, eax
lea eax, [eax + 1]
cmp word [esi + eax*2], 0
lea ecx, [eax + eax]
mov dword [ebp - 0x50c], ecx
jne 0x4b64a0
mov dword [esp], esi
mov dword [ebp - 0x4c8], 0xffffffff
call fcn.004b93d0
cmp al, 1
sbb edx, edx
and edx, 0xfffffff8
add edx, 0xe
cmp al, 1
sbb eax, eax
mov dword [ebp - 0x50c], edx
not eax
and eax, 8
add eax, esi
mov dword [esp], eax
mov dword [ebp - 0x510], eax
call fcn.004b8d70
test al, al
mov ebx, eax
je 0x4b6310
mov edx, dword [ebp - 0x50c]
cmp word [esi + edx], 0
jne 0x4b6310
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4b6329
test al, 0x10
je 0x4b6329
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x510]
lea ecx, [edi + 0x28]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov byte [edi + 0x24], 0
mov byte [edi + 0x25], 0
mov dword [esp], eax
call fcn.004729e0
sub esp, 4
cmp dword [edi + 0x2c], 2
jbe 0x4b63f2
mov eax, dword [edi + 0x28]
xor esi, esi
mov dword [edi + 0x2c], 2
mov word [eax + 4], si
jmp 0x4b63f2
movzx eax, word [esi]
cmp ax, 0x5c
sete bl
cmp ax, 0x2f
sete al
or bl, al
jne 0x4b6415
mov eax, dword [ebp - 0x4c8]
cmp eax, 0xffffffff
je 0x4b6352
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
test eax, eax
je 0x4b6493
mov dword [ebp - 0x4c8], 0xffffffff
lea eax, [ebp - 0x270]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub esp, 8
cmp eax, 0xffffffff
mov dword [ebp - 0x4c8], eax
je 0x4b6850
mov eax, dword [ebp - 0x270]
mov edx, dword [ebp - 0x268]
mov ebx, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x250]
mov byte [edi + 0x24], 0
mov byte [edi + 0x25], 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x26c]
mov dword [edi + 0xc], edx
mov edx, dword [ebp - 0x260]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x264]
mov dword [edi + 0x14], edx
mov edx, dword [ebp - 0x258]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x25c]
mov dword [edi + 0x1c], edx
mov edx, ebx
xor ebx, ebx
mov dword [edi + 0x18], eax
xor eax, eax
add eax, ecx
lea ecx, [edi + 0x28]
mov dword [edi], eax
lea eax, [ebp - 0x244]
adc edx, ebx
mov dword [edi + 4], edx
mov dword [esp], eax
call fcn.004729e0
sub esp, 4
mov ebx, 1
mov eax, dword [ebp - 0x4c8]
cmp eax, 0xffffffff
je 0x4b6409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 4
cmp word [esi + 2], 0
mov dword [esp], esi
jne 0x4b6570
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4b6329
test al, 0x10
je 0x4b6329
mov edx, dword [edi + 0x28]
xor ecx, ecx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov byte [edi + 0x24], 0
mov byte [edi + 0x25], 0
mov dword [edi + 0x2c], 0
mov word [edx], cx
mov dword [edi + 0x20], eax
jmp 0x4b63f2
xor ebx, ebx
jmp 0x4b63f2
lea eax, [esi + ecx - 2]
lea ecx, [ebp - 0x508]
mov dword [esp], eax
call fcn.00472800
lea ecx, [ebp - 0x4fc]
sub esp, 4
mov dword [esp], esi
call fcn.00472800
sub esp, 4
cmp ebx, dword [ebp - 0x4f8]
jae 0x4b64e7
mov eax, dword [ebp - 0x4fc]
mov ecx, dword [ebp - 0x50c]
xor edx, edx
mov dword [ebp - 0x4f8], ebx
mov word [eax + ecx - 2], dx
mov eax, dword [ebp - 0x504]
cmp eax, 6
ja 0x4b6860
lea ecx, [ebp - 0x508]
mov dword [esp], str.:_DATA
call fcn.00473090
sub esp, 4
mov eax, dword [ebp - 0x4fc]
mov dword [esp], eax
call fcn.004b93b0
test al, al
jne 0x4b66e0
mov eax, dword [ebp - 0x4fc]
mov dword [esp], eax
mov ecx, edi
call fcn.004b61f0
sub esp, 4
test al, al
jne 0x4b6ca1
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x4b654e
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp - 0x508]
test eax, eax
je 0x4b6226
mov dword [esp], eax
call fcn.006eb310
jmp 0x4b6226
call fcn.004b9090
test eax, eax
je 0x4b6329
lea eax, [esi + eax*2]
cmp word [eax], 0
mov dword [ebp - 0x50c], eax
je 0x4b6329
mov dword [esp], eax
call fcn.004b8cd0
test eax, eax
jns 0x4b6329
lea ecx, [ebp - 0x270]
mov dword [esp], esi
call fcn.00472800
mov eax, dword [ebp - 0x268]
mov edx, dword [ebp - 0x26c]
sub esp, 4
cmp eax, edx
mov dword [ebp - 0x510], eax
je 0x4b6ba5
mov eax, dword [ebp - 0x270]
lea ecx, [edx + 1]
mov word [eax + edx*2], 0x5c
mov dword [ebp - 0x514], eax
lea edx, [eax + edx*2 + 2]
xor eax, eax
cmp ecx, dword [ebp - 0x510]
mov word [edx], ax
mov dword [ebp - 0x26c], ecx
je 0x4b6b71
mov eax, ecx
mov ecx, 0x2a
mov word [edx], cx
mov ecx, dword [ebp - 0x514]
add eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x4c8]
cmp eax, 0xffffffff
je 0x4b6649
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
test eax, eax
je 0x4b6a90
mov ecx, dword [ebp - 0x514]
mov dword [ebp - 0x4c8], 0xffffffff
lea eax, [ebp - 0x4c8]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov ecx, eax
mov dword [ebp - 0x510], eax
call fcn.004b5d20
sub esp, 8
test al, al
mov byte [ebp - 0x514], al
je 0x4b6a90
mov eax, dword [edi + 0x28]
mov dword [esp + 4], 0x7344c4
mov dword [esp], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x4b6bd3
lea eax, [ebp - 0x4c8]
mov dword [esp], esi
mov dword [ebp - 0x510], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x4b6b19
cmp byte [ebp - 0x514], 0
jne 0x4b6a9c
test al, 0x10
jne 0x4b6a9c
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x4b6329
mov dword [esp], eax
call fcn.006eb310
jmp 0x4b6329
cmp ebx, 2
je 0x4b69b0
cmp ebx, 3
jne 0x4b6521
mov eax, dword [ebp - 0x4fc]
cmp word [eax + 4], 0x5c
jne 0x4b6527
mov eax, dword [edi + 0x28]
xor ecx, ecx
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov byte [edi + 0x24], 0
mov byte [edi + 0x25], 0
mov dword [edi + 0x2c], 0
mov word [eax], cx
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x4fc]
lea ecx, [ebp - 0x4ec]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x4f0], 0xffffffff
call fcn.00472920
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov esi, esi
lea edi, [edi]
lea ecx, [ebp - 0x4e0]
call fcn.00472730
mov eax, dword [ebp - 0x4f0]
cmp eax, 0xffffffff
je 0x4b6911
mov edx, dword [0x857bb4]
test edx, edx
je 0x4b6992
lea ecx, [ebp - 0x4c8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call edx
sub esp, 8
test eax, eax
jne 0x4b68a5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x26
je 0x4b6890
xor ebx, ebx
mov eax, dword [ebp - 0x4e0]
test eax, eax
je 0x4b67f7
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp - 0x4ec]
test eax, eax
je 0x4b6809
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp - 0x4f0]
cmp eax, 0xffffffff
je 0x4b6820
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x4b6832
mov dword [esp], eax
call fcn.006eb310
mov eax, dword [ebp - 0x508]
test eax, eax
je 0x4b6409
mov dword [esp], eax
call fcn.006eb310
jmp 0x4b6409
xor ebx, ebx
jmp 0x4b6409
mov edx, dword [ebp - 0x508]
mov dword [esp + 4], str.:_DATA
lea eax, [edx + eax*2 - 0xc]
mov dword [esp], eax
call fcn.00470500
test al, al
je 0x4b64f6
jmp 0x4b650b
mov dword [esp], 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4b67e3
mov eax, dword [ebp - 0x4c8]
mov edx, dword [ebp - 0x4c4]
lea ecx, [ebp - 0x4e0]
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x4c0]
mov dword [ebp - 0x4cc], edx
mov dword [esp], eax
call fcn.004729e0
mov eax, dword [ebp - 0x508]
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4e0]
mov dword [esp], eax
call fcn.00470230
test al, al
mov ebx, eax
jne 0x4b6a26
mov eax, dword [ebp - 0x4e0]
test eax, eax
je 0x4b6790
mov dword [esp], eax
call fcn.006eb310
jmp 0x4b6790
mov eax, dword [0x857bb8]
test eax, eax
je 0x4b6992
mov ebx, dword [ebp - 0x4ec]
mov dword [esp], 0
call esi
lea eax, [ebp - 0x270]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], ebx
call dword [0x857bb8]
sub esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x4f0], eax
je 0x4b6a68
mov eax, dword [ebp - 0x270]
mov edx, dword [ebp - 0x26c]
lea ecx, [ebp - 0x4e0]
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x268]
mov dword [ebp - 0x4cc], edx
mov dword [esp], eax
call fcn.004729e0
jmp 0x4b68d1
mov dword [esp], 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4b67d2
mov eax, dword [edi + 0x28]
xor edx, edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x28]
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x20], 0
mov byte [edi + 0x24], 0
mov byte [edi + 0x25], 0
mov dword [edi + 0x2c], 0
mov word [eax], dx
lea eax, [ebp - 0x4fc]
mov dword [esp], eax
call fcn.00472a90
mov eax, dword [edi + 0x20]
sub esp, 4
and eax, 0xfffffbef
jmp 0x4b6750
mov eax, dword [ebp - 0x4dc]
cmp eax, 7
jbe 0x4b6a3a
add eax, 0xfffffffa
jb 0x4b6c10
lea eax, [ebp - 0x4e0]
lea ecx, [edi + 0x28]
mov dword [esp], eax
call fcn.00472fc0
mov eax, dword [ebp - 0x4d0]
mov edx, dword [ebp - 0x4cc]
sub esp, 4
mov byte [edi + 0x24], 1
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x4b67e5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x26
je 0x4b67d8
cmp dword [ebp - 0x4f0], 0xffffffff
je 0x4b67d8
jmp 0x4b6961
mov byte [ebp - 0x514], 0
jmp 0x4b668f
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov byte [edi + 0x24], 0
mov byte [edi + 0x25], 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x50c]
lea ecx, [edi + 0x28]
mov dword [esp], eax
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x510], eax
call fcn.004729e0
mov eax, dword [ebp - 0x270]
sub esp, 4
test eax, eax
je 0x4b63f2
mov dword [esp], eax
call fcn.006eb310
jmp 0x4b63f2
cmp byte [ebp - 0x514], 0
je 0x4b66c5
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov byte [edi + 0x24], 0
mov byte [edi + 0x25], 0
mov dword [edi + 0x20], 0x10
jmp 0x4b6ade
lea eax, [ebp - 0x4c8]
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x510], eax
call fcn.00472200
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x270]
mov edx, ecx
mov dword [ebp - 0x514], eax
add edx, ecx
add edx, eax
jmp 0x4b65fb
lea eax, [ebp - 0x4c8]
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x510], eax
call fcn.00472200
mov eax, dword [ebp - 0x268]
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x510], eax
jmp 0x4b65cb
mov eax, dword [ebp - 0x50c]
lea ecx, [edi + 0x28]
mov dword [esp], eax
call fcn.004729e0
jmp 0x4b6afb
mov edx, dword [ebp - 0x4e0]
mov dword [ebp - 0x4dc], eax
mov word [edx + eax*2], 0
jmp 0x4b6a3a
mov eax, dword [edi + 0x20]
and eax, 0xfffffbef
jmp 0x4b6750