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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5efdb0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x65bf90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [0x6686d4], 0
jne 0x41c78a
lea eax, [ebp - 0x1c]
push eax
call fcn.004182b0
mov eax, dword [eax]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp - 0x1c]
push ecx
mov esi, eax
call fcn.004ba2af
add esp, 4
mov eax, esi
jmp 0x41c796
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c79f
cmp eax, 0xffffffff
je 0x41c79f
test al, 0x10
jne 0x41c7ef
mov eax, ebx
call fcn.0041c2e0
test al, al
jne 0x41c984
mov eax, ebx
call fcn.0041c4f0
lea edi, [ebp - 0x28]
mov dword [ebp - 0x10], eax
call fcn.00417fb0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004181e0
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
test eax, eax
js 0x41c80e
lea ecx, [ebx - 1]
cmp eax, ecx
jne 0x41c80e
cmp ebx, 1
jne 0x41c803
mov edx, esi
push edx
call fcn.004ba2af
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [esi + ecx*2], ax
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ba2ba
add esp, 4
lea ecx, [ebx + ebx + 2]
push ecx
push esi
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.005c27a0
add esp, 0xc
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041c630
test al, al
jne 0x41c93a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41c96f
test ebx, ebx
je 0x41c96f
movzx ecx, word [esi + ebx*2 - 2]
lea eax, [esi + ebx*2 - 2]
cmp ecx, 0x5c
je 0x41c89a
lea esp, [esp]
cmp cx, 0x2f
je 0x41c89a
cmp eax, esi
je 0x41c96f
movzx ecx, word [eax - 2]
sub eax, 2
cmp ecx, 0x5c
jne 0x41c880
sub eax, esi
sar eax, 1
mov edi, eax
js 0x41c96f
test edi, edi
je 0x41c96f
cmp edi, 1
jne 0x41c8c8
movzx eax, word [esi]
cmp eax, 0x5c
je 0x41c963
cmp eax, 0x2f
je 0x41c963
lea edx, [edi + 1]
cmp dword [ebp - 0x10], edx
jae 0x41c969
cmp edi, ebx
jae 0x41c8e3
mov ebx, edi
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [esi + edi*2], ax
mov ecx, esi
call fcn.0041c630
test al, al
je 0x41c855
cmp edi, dword [ebp - 0x18]
jge 0x41c93a
jmp 0x41c900
mov ebx, dword [ebp - 0x1c]
lea edx, [ebx + edi*2 + 2]
call fcn.0041c1c0
test eax, eax
jns 0x41c915
mov edi, dword [ebp - 0x18]
jmp 0x41c919
lea edi, [edi + eax + 1]
push ebx
lea esi, [ebp - 0x28]
call fcn.00418180
mov esi, dword [ebp - 0x28]
mov eax, esi
call fcn.0041c5d0
test al, al
je 0x41c937
cmp edi, dword [ebp - 0x18]
jl 0x41c900
jmp 0x41c93d
push ebx
jmp 0x41c973
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.004ba2af
add esp, 4
push esi
call fcn.004ba2af
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
push edx
jmp 0x41c973
mov eax, dword [ebp - 0x1c]
push eax
jmp 0x41c973
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004ba2af
add esp, 4
push esi
call fcn.004ba2af
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret