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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
cmp ecx, esi
je 0x419521
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], esi
xor eax, eax
mov word [ebp - 0x48], ax
mov edi, 7
mov eax, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x419437
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.00404447
push esi
sub esp, 0xc
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x50], esp
call fcn.0041df80
lea ecx, [ebp - 0x48]
push ecx
lea ebx, [ebp - 0x60]
call fcn.0041dfd0
mov edx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
add esp, 0x14
mov byte [ebp - 0x50], 0
mov eax, edx
cmp edx, ecx
je 0x4194a7
cmp dword [eax + 0x10], 0
je 0x419490
add eax, 0x1c
cmp eax, ecx
jne 0x419481
jmp 0x4194a7
cmp ecx, eax
je 0x4194d6
mov edx, dword [ebp - 0x50]
push edx
push ecx
call fcn.0041f1f0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
add esp, 8
cmp ecx, eax
je 0x4194d6
mov edx, dword [ebp - 0x50]
push edx
push eax
push ecx
push ecx
call fcn.004174c0
mov edx, dword [ebp - 0x5c]
mov esi, eax
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x54]
push ecx
push edx
push esi
call fcn.00417480
mov edx, dword [ebp - 0x60]
mov ecx, esi
add esp, 0x20
mov dword [ebp - 0x5c], ecx
cmp edx, ecx
jne 0x419528
cmp dword [ebp - 0x34], 8
jb 0x4194f2
mov eax, dword [ebp - 0x48]
push eax
call fcn.00475dcb
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
test edx, edx
je 0x419521
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
push ecx
push edx
call fcn.00417480
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00475dcb
add esp, 0x14
xor al, al
jmp 0x419610
mov esi, edx
xor edx, edx
mov byte [ebp - 0x49], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 1
lea ebx, [ebx]
cmp esi, ecx
je 0x4195a3
cmp byte [ebp - 0x49], 0
lea ecx, [ebp - 0x2c]
je 0x41962c
push 0xffffffffffffffff
push 0
push esi
mov byte [ebp - 0x49], 0
call fcn.00403cc2
cmp dword [ebp - 0x18], 8
jb 0x419580
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x419583
xor bl, bl
jmp 0x419599
lea eax, [ebp - 0x2c]
push eax
call edi
cmp eax, 0xffffffff
je 0x419682
test al, 0x10
je 0x419682
mov bl, 1
mov ecx, dword [ebp - 0x5c]
add esi, 0x1c
test bl, bl
jne 0x419550
cmp dword [ebp - 0x18], 8
jb 0x4195b8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00475dcb
mov ecx, dword [ebp - 0x5c]
add esp, 4
xor edi, edi
xor edx, edx
cmp dword [ebp - 0x34], 8
mov esi, 7
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
jb 0x4195e0
mov eax, dword [ebp - 0x48]
push eax
call fcn.00475dcb
mov ecx, dword [ebp - 0x5c]
add esp, 4
mov eax, dword [ebp - 0x60]
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
cmp eax, edi
je 0x41960e
mov edx, dword [ebp - 0x50]
push edx
lea edx, [ebp - 0x54]
push edx
push ecx
push eax
call fcn.00417480
mov eax, dword [ebp - 0x60]
push eax
call fcn.00475dcb
add esp, 0x14
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
push 1
push 0x4bed40
call fcn.004043a6
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404303
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jb 0x419689
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x419669
push eax
call edi
cmp eax, 0xffffffff
je 0x419666
test al, 0x10
jne 0x419597
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x419671
lea eax, [ebp - 0x2c]
push eax
call fcn.0047680f
add esp, 4
test eax, eax
je 0x419597
xor bl, bl
jmp 0x419599
lea eax, [ebp - 0x2c]
jmp 0x419656