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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e664
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x46d45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x41d77c
mov edx, dword [ebp + 0xc]
movzx eax, word [edx + 2]
cmp eax, 0x3a
je 0x41d79e
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x41d793
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 2]
cmp ecx, 0x5c
je 0x41d79e
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x41d810
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x46f874
call fcn.004173f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00416b30
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004021e0
cmp dword [ebp - 0x18], 0xffffffff
je 0x41d7ec
mov ecx, dword [ebp - 0x18]
and ecx, 0x10
jne 0x41d7ec
mov dword [ebp - 0x38], 1
jmp 0x41d7f3
mov dword [ebp - 0x38], 0
mov dl, byte [ebp - 0x38]
mov byte [ebp - 0x31], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004168d0
mov al, byte [ebp - 0x31]
jmp 0x41d97e
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402190
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00402270
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
test edx, edx
je 0x41d968
push 0x3b
mov eax, dword [ebp - 0x14]
push eax
call fcn.00416790
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x41d85b
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov word [edx], cx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00438225
add esp, 4
mov esi, eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00438225
add esp, 4
lea edx, [esi + eax + 2]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
shl eax, 1
push eax
call fcn.00437999
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push 0x45cdc4
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00438b59
add esp, 0x14
cmp dword [ebp - 0x2c], 0
je 0x41d8bb
mov edx, 0x3b
mov eax, dword [ebp - 0x2c]
mov word [eax], dx
cmp dword [ebp - 0x2c], 0
je 0x41d8cc
mov ecx, dword [ebp - 0x2c]
add ecx, 2
mov dword [ebp - 0x3c], ecx
jmp 0x41d8d3
mov dword [ebp - 0x3c], 0x45cdd0
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, 0x46f874
call fcn.004173f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00416b30
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x41d94b
mov edx, dword [ebp - 0x24]
and edx, 0x10
jne 0x41d94b
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.004021e0
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00437abb
add esp, 4
mov byte [ebp - 0x32], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004168d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004021c0
mov al, byte [ebp - 0x32]
jmp 0x41d97e
mov edx, dword [ebp - 0x20]
push edx
call fcn.00437abb
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004168d0
jmp 0x41d82e
mov byte [ebp - 0x33], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004021c0
mov al, byte [ebp - 0x33]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret